Spaces:
Running
Running
BinaryONe
commited on
Commit
·
7e2416c
1
Parent(s):
8e35bdc
Nginx Changes-Over Alpine
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -31,7 +31,7 @@ COPY www.privateone-teleapi.hf.space.conf /etc/nginx/conf.d/www.privateone-telea
|
|
31 |
#COPY nginx.conf /etc/nginx/nginx.conf
|
32 |
|
33 |
|
34 |
-
RUN service nginx start
|
35 |
#RUN touch /var/lib/nginx/logs/error.log && \
|
36 |
# chmod 777 /var/lib/nginx/logs/error.log
|
37 |
|
@@ -51,10 +51,11 @@ RUN cat /etc/nginx/nginx.conf && echo "--------------------" && cat /etc/nginx/c
|
|
51 |
# Switch to non-root user
|
52 |
USER appuser
|
53 |
|
54 |
-
RUN /etc/init.d/nginx status
|
55 |
|
56 |
|
57 |
EXPOSE 7860
|
58 |
|
59 |
# Start Nginx and your application (using exec and the correct Python path)
|
60 |
-
CMD ["sh", "-c", "exec /app/venv/bin/python -u -m FileStream & nginx -g 'daemon off;'"]
|
|
|
|
31 |
#COPY nginx.conf /etc/nginx/nginx.conf
|
32 |
|
33 |
|
34 |
+
#RUN service nginx start
|
35 |
#RUN touch /var/lib/nginx/logs/error.log && \
|
36 |
# chmod 777 /var/lib/nginx/logs/error.log
|
37 |
|
|
|
51 |
# Switch to non-root user
|
52 |
USER appuser
|
53 |
|
54 |
+
#RUN /etc/init.d/nginx status
|
55 |
|
56 |
|
57 |
EXPOSE 7860
|
58 |
|
59 |
# Start Nginx and your application (using exec and the correct Python path)
|
60 |
+
#CMD ["sh", "-c", "exec /app/venv/bin/python -u -m FileStream & nginx -g 'daemon off;'"]
|
61 |
+
CMD ["sh", "-c", "rc-service nginx start && exec /app/venv/bin/python -u -m FileStream"]
|