1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-26 23:51:03 +00:00

Improve cache usage

This commit is contained in:
Mo 2022-11-19 15:44:36 +01:00
parent ea9e3f1c82
commit ebcf997f8e

View file

@ -1,11 +1,13 @@
FROM docker.io/library/python:3.11-slim FROM docker.io/library/python:3.11-slim
COPY . /volumes/repo
WORKDIR /volumes/repo
RUN pip3 install -r requirements.txt
EXPOSE 80 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()'"] CMD ["gunicorn", "--bind", "0.0.0.0:80", "--workers", "5", "--log-file", "/volumes/logs/gunicorn.log", "'run:create_app()'"]