File size: 312 Bytes
7b302ae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9-slim

WORKDIR /code

# Installiere Abhängigkeiten
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Kopiere den App-Code
COPY app.py .

# Port freigeben
EXPOSE 7860

# Umgebungsvariablen setzen
ENV HOST=0.0.0.0
ENV PORT=7860

# Start-Kommando
CMD ["python", "app.py"]