DBFahrerKaterchen3 commited on
Commit
d3a9350
·
verified ·
1 Parent(s): 339c1cb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -1,12 +1,19 @@
1
- FROM python:3.10
2
- # force rebuild 2026-03-11
3
-
4
 
 
5
  WORKDIR /app
6
 
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
 
10
  COPY . .
11
 
 
 
 
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ # Basis-Image
2
+ FROM python:3.10-slim
 
3
 
4
+ # Arbeitsverzeichnis setzen
5
  WORKDIR /app
6
 
7
+ # Requirements installieren
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Projektdateien kopieren
12
  COPY . .
13
 
14
+ # Port für HuggingFace Spaces
15
+ EXPOSE 7860
16
+
17
+ # Startbefehl
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
19
+