Spaces:
Running
Running
BinaryONe
commited on
Commit
·
d6aeb4c
1
Parent(s):
ddcc562
Nginx Changes-Over Alpine
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -31,7 +31,11 @@ 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 |
# Remove the user directive from the main nginx.conf (not needed)
|
37 |
#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
|
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
|