FROM python:3.12.8-slim-bookworm WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app ./app COPY migrations ./migrations COPY scripts ./scripts RUN useradd --create-home --uid 10001 appuser && chown -R appuser:appuser /app USER appuser EXPOSE 8080 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]