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

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