Dockerize

This commit is contained in:
Kai Vogelgesang 2020-07-18 01:29:12 +02:00
parent 541206bc41
commit f8fd0faabf
2 changed files with 16 additions and 0 deletions

4
static/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM python:3.8
COPY requirements.txt /
RUN pip install --no-cache-dir -r requirements.txt

12
static/docker-compose.yml Normal file
View File

@ -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"