added .dockerignore and a Dockerfile
Signed-off-by: SpagettiFisch <johmewu@gmail.com>
This commit is contained in:
parent
6bf0b1e84b
commit
f709c286fa
2 changed files with 20 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
/config/
|
||||||
|
/data/
|
||||||
|
/modules/__pycache__
|
||||||
|
/whitelist/
|
||||||
|
/.gitignore
|
||||||
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
||||||
Loading…
Add table
Reference in a new issue