Create container setup

This commit is contained in:
fanyx 2024-01-24 21:49:03 +01:00
parent 9b1336fb2c
commit 90b6b94f78
3 changed files with 23 additions and 0 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
**/__pycache__
env
.envrc
.gitignore
LICENSE
README.md
config.yaml

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
env/
**/__pycache__
config.yaml

15
Dockerfile Normal file
View File

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