fixing low-iq moves

This commit is contained in:
2023-01-29 10:05:07 -06:00
parent 8d9010801b
commit 2f58e0f734
2 changed files with 8 additions and 9 deletions

View File

@@ -10,16 +10,15 @@ RUN apt-get install -y python3-pip nginx gunicorn supervisor
# do we really need venv?
# Setup flask application
RUN mkdir /deploy
RUN mkdir /deploy/app
RUN mkdir -p /deploy/app
COPY src /deploy/app
RUN pip install -r /deploy/app/requirements.txt
# Setup nginx
RUN rm /etc/nginx/sites-enabled/default
COPY flask.conf /etc/nginx/sites-available/
RUN ln -s /etc/nginx/sites-available/flask.conf /etc/nginx/sites-enabled/flask.conf
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN ln -s /etc/nginx/sites-available/flask.conf /etc/nginx/sites-enabled/flask.conf && \
echo "daemon off;" >> /etc/nginx/nginx.conf
# Setup supervisord
RUN mkdir -p /var/log/supervisor
@@ -27,9 +26,9 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
# Permissions
RUN adduser --disabled-password --gecos '' supervisor
RUN chmod -R 775 /var/*
RUN chown -R supervisor /var/*
RUN adduser --disabled-password --gecos '' supervisor && \
chmod -R 775 /var/* && \
chown -R supervisor /var/*
# Entrypoint
USER supervisor