From 86e508bc9d0716e004ca8ca6220d9eb1c15c3737 Mon Sep 17 00:00:00 2001 From: Julius Freudenberger Date: Sat, 4 Feb 2023 10:40:47 +0100 Subject: [PATCH] Add Dockerfile and docker-compose.yaml --- .dockerignore | 5 +++++ Dockerfile | 7 +++++++ docker-compose.yaml | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8f0db00 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.idea/ +venv/ +__pycache__/ +Dockerfile +docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5e8d1f1 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..0afa42a --- /dev/null +++ b/docker-compose.yaml @@ -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"