16 lines
307 B
Docker
16 lines
307 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Dependencies installieren
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Source-Code kopieren
|
|
COPY src/ ./src
|
|
|
|
# Port öffnen
|
|
EXPOSE 8000
|
|
|
|
# FastAPI starten (Uvicorn)
|
|
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"] |