wanderhome-quiz/server/Dockerfile

8 lines
244 B
Docker
Raw Permalink Normal View History

2022-09-01 20:35:05 +01:00
FROM python:3.10-slim
2022-08-24 15:55:53 +01:00
ARG DATA=./data/
ENV DATA=$DATA
WORKDIR /app
COPY . .
RUN pip install --upgrade pip && pip install -r requirements.txt
2022-09-01 20:35:05 +01:00
RUN chmod +x install.py && ./install.py
2022-08-24 15:55:53 +01:00
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "5", "wsgi:app" ]