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

Add Containerfile

This commit is contained in:
Mo 2022-11-19 14:09:11 +01:00
parent 131d22771f
commit a4b760ded0
2 changed files with 12 additions and 0 deletions

1
.containerignore Normal file
View file

@ -0,0 +1 @@
.*

11
Containerfile Normal file
View file

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