From 90b6b94f7830b1f0db9a0974f5662182d18b2415 Mon Sep 17 00:00:00 2001 From: fanyx Date: Wed, 24 Jan 2024 21:49:03 +0100 Subject: [PATCH] Create container setup --- .dockerignore | 7 +++++++ .gitignore | 1 + Dockerfile | 15 +++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..406781b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +**/__pycache__ +env +.envrc +.gitignore +LICENSE +README.md +config.yaml diff --git a/.gitignore b/.gitignore index 8c1ad54..9d10498 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ env/ **/__pycache__ +config.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1dcbb39 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.12-alpine + +RUN apk --no-cache add \ + gcc musl-dev + +RUN mkdir -p /app && \ + mkdir -p /etc/salzarbeiter + +COPY ./ /app/ + +RUN ["python3","-m","pip","install","-r","/app/requirements.txt"] + +VOLUME /etc/salzarbeiter + +CMD ["python3","/app/main.py"]