22 lines
414 B
Docker
22 lines
414 B
Docker
# 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"]
|