Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ortanaV2 authored Nov 17, 2024
1 parent e8a0484 commit 33a99af
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Schritt 1: Verwende ein Basis-Image, das Python enthält
FROM python:3.11.7

# Schritt 2: Arbeitsverzeichnis im Container erstellen
WORKDIR /app

# Schritt 3: Die requirements.txt in das Arbeitsverzeichnis kopieren
COPY requirements.txt .

# Schritt 4: Abhängigkeiten installieren
RUN pip install --no-cache-dir -r requirements.txt

# Schritt 5: Den Rest des Codes in den Container kopieren
COPY . .

# Schritt 7: Den Startbefehl definieren
CMD ["python", "dashboard.py"]

0 comments on commit 33a99af

Please sign in to comment.