From f8fd0faabfcf33c09ee9ba56a915c43b3ba36719 Mon Sep 17 00:00:00 2001 From: Kai Vogelgesang Date: Sat, 18 Jul 2020 01:29:12 +0200 Subject: [PATCH] Dockerize --- static/Dockerfile | 4 ++++ static/docker-compose.yml | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 static/Dockerfile create mode 100644 static/docker-compose.yml diff --git a/static/Dockerfile b/static/Dockerfile new file mode 100644 index 0000000..f26bbc9 --- /dev/null +++ b/static/Dockerfile @@ -0,0 +1,4 @@ +FROM python:3.8 + +COPY requirements.txt / +RUN pip install --no-cache-dir -r requirements.txt diff --git a/static/docker-compose.yml b/static/docker-compose.yml new file mode 100644 index 0000000..c0721bf --- /dev/null +++ b/static/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' +services: + web: + build: . + expose: + - "42042" + volumes: + - ./src:/usr/src/app + working_dir: /usr/src/app + command: "python -u main.py" + environment: + - "WASCHMARKENSECRET=replace this we dont want this in the repo"