add base files

This commit is contained in:
2025-09-28 11:06:59 +02:00
parent a0f05e8eb5
commit 12a02b07b6
14 changed files with 1128 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install system deps (optional: to build some wheels faster). Kept minimal here.
WORKDIR /app
# Copy dependency list and install first (leverages Docker layer cache)
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app ./app
EXPOSE 8000
# Run the FastAPI app with Uvicorn
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]