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