Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
497 B

9 months ago
# Python Basis-Image
FROM python:3.8
9 months ago
# Arbeitsverzeichnis innerhalb des Containers
WORKDIR /app
9 months ago
# Anwendungsabhängigkeiten in das Container-Image kopieren
COPY requirements.txt .
9 months ago
# Abhängigkeiten installieren
RUN pip install --no-cache-dir -r requirements.txt
9 months ago
# Port der Flask-Anwendung
EXPOSE 8085
9 months ago
# eigenen Code in das Container-Image kopieren
COPY fib/*.py /app/
COPY fib/static /app/static
COPY fib/templates /app/templates
9 months ago
# Befehl, der die Anwendung startet
CMD ["python", "app.py"]