Add Dockerfile and docker-compose.yaml

This commit is contained in:
Julius Freudenberger 2023-02-04 10:40:47 +01:00
parent db22341b18
commit 86e508bc9d
3 changed files with 20 additions and 0 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
.idea/
venv/
__pycache__/
Dockerfile
docker-compose.yaml

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM python:3.10
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["gunicorn", "-b", "0.0.0.0", "app:app"]

8
docker-compose.yaml Normal file
View file

@ -0,0 +1,8 @@
version: "3"
services:
app:
image: harbor.jfreudenberger.de:8443/mensa-parser/app:latest
build:
context: .
ports:
- "127.0.0.1:8000:8000"