🧑‍💻 Added Docker

This commit is contained in:
Mawoka
2022-03-03 17:02:01 +01:00
parent 781ebfcb52
commit a3f781e610
7 changed files with 226 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.10-slim
COPY classquiz/ /app/classquiz/
COPY init_db.py /app/
COPY *start.sh /app/
COPY gunicorn_conf.py /app/
COPY Pipfile* /app/
WORKDIR /app/
RUN pip install pipenv && pipenv install --system
EXPOSE 80
ENV PYTHONPATH=/app
RUN chmod +x start.sh
ENV APP_MODULE=classquiz:app
CMD ["./start.sh"]