create log folder via docker

This commit is contained in:
2023-01-28 23:14:47 -06:00
parent b767d2fbe8
commit 74bdbaa498
2 changed files with 7 additions and 6 deletions

View File

@@ -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"]

View File

@@ -5,3 +5,5 @@ loglevel=critical
[program:nginx] [program:nginx]
command=/usr/sbin/nginx command=/usr/sbin/nginx
logfile=/dev/null
loglevel=critical