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:
parent
ea9e3f1c82
commit
ebcf997f8e
1 changed files with 8 additions and 6 deletions
|
@ -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()'"]
|
Loading…
Reference in a new issue