This commit is contained in:
2024-11-03 18:23:19 +01:00
parent ced5d8c5ca
commit 32d7f8a8f5
5 changed files with 21 additions and 7 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM python:3.10
# Setze das Arbeitsverzeichnis im Container
WORKDIR /usr/src/app
# Kopiere requirements.txt und installiere die Abhängigkeiten
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Kopiere den restlichen App-Code
COPY . .
# Standardkommando (kann in docker-compose überschrieben werden)
CMD ["python", "server.py"]