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