Initial commit
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
# Basis-Image mit Python
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Installiere Abhängigkeiten
|
||||
RUN pip install --no-cache-dir --upgrade pip
|
||||
|
||||
# Arbeitsverzeichnis im Container
|
||||
WORKDIR /app
|
||||
|
||||
# requirements.txt kopieren und installieren
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# App-Dateien kopieren
|
||||
COPY *.py .
|
||||
|
||||
# Port freigeben
|
||||
EXPOSE 8050
|
||||
|
||||
# Container-Startbefehl
|
||||
CMD ["python", "req-short.py"]
|
||||
Reference in New Issue
Block a user