mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-01-15 19:23:58 +01:00
19 lines
336 B
Docker
19 lines
336 B
Docker
|
# Basis-Image für Python
|
||
|
FROM python:slim
|
||
|
|
||
|
# Arbeitsverzeichnis festlegen
|
||
|
WORKDIR /app
|
||
|
|
||
|
# Abhängigkeiten kopieren und installieren
|
||
|
COPY app/requirements.txt requirements.txt
|
||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
||
|
# Anwendungscode kopieren
|
||
|
COPY app/ .
|
||
|
|
||
|
# Port freigeben
|
||
|
EXPOSE 5000
|
||
|
|
||
|
# Startbefehl
|
||
|
CMD ["python", "app.py"]
|