mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
cut out supervisor
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user