added .dockerignore and a Dockerfile

Signed-off-by: SpagettiFisch <johmewu@gmail.com>
This commit is contained in:
SpagettiFisch 2024-06-20 00:11:42 +02:00
parent 6bf0b1e84b
commit f709c286fa
2 changed files with 20 additions and 0 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
/config/
/data/
/modules/__pycache__
/whitelist/
/.gitignore

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
# Basis-Image
FROM python:3.12-slim-bookworm
# Arbeitsverzeichnis setzen
WORKDIR /app
# Abhängigkeiten kopieren und installieren
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Anwendungsdateien kopieren
COPY . .
# Startbefehl
CMD ["python", "./main.py"]