17 lines
354 B
Docker
17 lines
354 B
Docker
# Build stage (optional hier für jetzt reicht)
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Abhängigkeiten installieren
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Applikation kopieren
|
|
COPY app/ ./app
|
|
|
|
# Exponierter Port
|
|
EXPOSE 8000
|
|
|
|
# Starte den Server
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] |