mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
create log folder via docker
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -6,8 +6,7 @@ LABEL maintainer="Andrew Simonson <asimonson1125@gmail.com>"
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y python3-pip nginx gunicorn
|
RUN apt-get install -y python3-pip nginx gunicorn supervisor
|
||||||
# supervisor
|
|
||||||
# do we really need venv?
|
# do we really need venv?
|
||||||
|
|
||||||
# Setup flask application
|
# Setup flask application
|
||||||
@@ -23,9 +22,9 @@ RUN ln -s /etc/nginx/sites-available/flask.conf /etc/nginx/sites-enabled/flask.c
|
|||||||
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
|
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Setup supervisord
|
# Setup supervisord
|
||||||
# RUN mkdir -p /var/log/supervisor
|
RUN mkdir -p /log/supervisor
|
||||||
# COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
# COPY gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
|
COPY gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
|
||||||
|
|
||||||
# Start processes (Lol idk how this works)
|
# Start processes
|
||||||
CMD ["/usr/sbin/nginx"]
|
CMD ["/usr/sbin/nginx"]
|
||||||
|
|||||||
@@ -5,3 +5,5 @@ loglevel=critical
|
|||||||
|
|
||||||
[program:nginx]
|
[program:nginx]
|
||||||
command=/usr/sbin/nginx
|
command=/usr/sbin/nginx
|
||||||
|
logfile=/dev/null
|
||||||
|
loglevel=critical
|
||||||
Reference in New Issue
Block a user