Alibrown commited on
Commit
ffc9f59
·
verified ·
1 Parent(s): e5fce56

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -10
Dockerfile CHANGED
@@ -1,18 +1,12 @@
1
- # Basis-Image
2
  FROM python:3.10-slim
3
 
4
- # Arbeitsverzeichnis setzen
5
  WORKDIR /app
6
 
7
- # Requirements kopieren und installieren
8
- COPY requirements.txt /app/
9
- RUN pip install -r requirements.txt
10
 
11
- # Anwendungscode in den /app-Ordner kopieren
12
- COPY app /app
13
 
14
- # Port freigeben (optional, falls du einen bestimmten Port für HTTP benötigst)
15
  EXPOSE 8080
16
 
17
- # Startbefehl
18
- CMD ["python", "app.py"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
 
7
 
8
+ COPY . .
 
9
 
 
10
  EXPOSE 8080
11
 
12
+ CMD ["python", "app/app.py"]