Spaces:
Running
Running
BinaryONe
commited on
Commit
·
a0e5aad
1
Parent(s):
d6aeb4c
Nginx Changes
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
@@ -31,11 +31,7 @@ COPY www.privateone-teleapi.hf.space.conf /etc/nginx/conf.d/www.privateone-telea
|
|
31 |
# Create necessary directories and set correct permissions (fix ownership)
|
32 |
RUN mkdir -p /var/www/html /var/log/nginx /run/nginx && \
|
33 |
chown -R nginx:nginx /var/lib/nginx /var/log/nginx /run/nginx && \
|
34 |
-
chown -R appuser:appgroup /app /var/www/html
|
35 |
-
|
36 |
-
# Fix ownership here
|
37 |
-
RUN chown -R appuser:appuser /app && chmod -R 777 /app
|
38 |
-
|
39 |
|
40 |
# Remove the user directive from the main nginx.conf (not needed)
|
41 |
#RUN sed -i '/^user /d' /etc/nginx/nginx.conf
|
|
|
31 |
# Create necessary directories and set correct permissions (fix ownership)
|
32 |
RUN mkdir -p /var/www/html /var/log/nginx /run/nginx && \
|
33 |
chown -R nginx:nginx /var/lib/nginx /var/log/nginx /run/nginx && \
|
34 |
+
chown -R appuser:appgroup /app /var/www/html && chmod -R 777 /app
|
|
|
|
|
|
|
|
|
35 |
|
36 |
# Remove the user directive from the main nginx.conf (not needed)
|
37 |
#RUN sed -i '/^user /d' /etc/nginx/nginx.conf
|