Containerise for deployment

This commit is contained in:
2022-09-01 20:35:05 +01:00
parent aa20416aa1
commit 0ff04818ae
12 changed files with 286 additions and 3 deletions

View File

@ -1,8 +1,8 @@
FROM python:3-10:alpine
FROM python:3.10-slim
ARG DATA=./data/
ENV DATA=$DATA
WORKDIR /app
COPY . .
RUN pip install --upgrade pip && pip install -r requirements.txt
RUN chmod +x install.py reset.py && ./install.py
RUN chmod +x install.py && ./install.py
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "5", "wsgi:app" ]