Lots of changes

This commit is contained in:
Dustin Pianalto
2019-09-14 11:28:53 -08:00
parent da60570aee
commit a47890f366
25 changed files with 1657 additions and 21 deletions
+36
View File
@@ -0,0 +1,36 @@
FROM base AS web
WORKDIR /code
RUN apk update && apk add nginx && apk add supervisor
COPY requirements/base.txt .
COPY requirements/production.txt .
COPY requirements/web.txt .
RUN pip install -r production.txt
RUN pip install -r web.txt
RUN rm -f /etc/nginx/sites-enabled/default
RUN rm -f /etc/nginx/conf.d/default.conf
COPY ./services/web/nginx.conf /etc/nginx/nginx.conf
COPY ./services/web/geeksbot.conf /etc/nginx/sites-enabled/geeksbot
COPY ./services/web/gunicorn.conf /etc/gunicorn.conf
COPY ./services/web/supervisord.conf /etc/supervisor/supervisord.conf
COPY ./services/web/supervisor_geeksbot.conf /etc/supervisor/conf.d/geeksbot.conf
COPY ./ssl_certs/geeksbot_app/geeksbot_app_cert_chain.crt /etc/ssl/geeksbot_app_cert_chain.crt
COPY ./ssl_certs/geeksbot_app/geeksbot.app.key /etc/ssl/geeksbot.app.key
RUN rm -rf /tmp/*
RUN mkdir -p /tmp/logs/nginx
RUN mkdir -p /tmp/logs/geeksbot
COPY manage.py .
copy entrypoint .
RUN sed -i 's/\r$//g' /code/entrypoint
RUN chmod +x /code/entrypoint
EXPOSE 80 8000 443
ENTRYPOINT [ "/code/entrypoint" ]