cut out supervisor

This commit is contained in:
2023-01-28 22:32:44 -06:00
parent 5655ad688f
commit b767d2fbe8

View File

@@ -6,7 +6,8 @@ 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 supervisor RUN apt-get install -y python3-pip nginx gunicorn
# supervisor
# do we really need venv? # do we really need venv?
# Setup flask application # Setup flask application
@@ -22,9 +23,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 /var/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 (Lol idk how this works)
CMD ["/usr/bin/supervisord"] CMD ["/usr/sbin/nginx"]