diff --git a/Containerfile b/Containerfile index caf8f90..8f4dd03 100644 --- a/Containerfile +++ b/Containerfile @@ -1,11 +1,13 @@ FROM docker.io/library/python:3.11-slim -COPY . /volumes/repo - -WORKDIR /volumes/repo - -RUN pip3 install -r requirements.txt - EXPOSE 80 +WORKDIR /volumes/repo + +COPY requirements.txt . + +RUN pip3 install -r requirements.txt + +COPY . . + CMD ["gunicorn", "--bind", "0.0.0.0:80", "--workers", "5", "--log-file", "/volumes/logs/gunicorn.log", "'run:create_app()'"] \ No newline at end of file