initial commit
All checks were successful
Build & push Docker image / publish (push) Successful in 30s

This commit is contained in:
estebanthi
2025-10-18 16:32:21 +02:00
commit 15d18c3f62
13 changed files with 676 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1
FROM python:3.12-slim AS base
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
# Install deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App
COPY app ./app
# Non-root user
RUN useradd -m appuser
USER appuser
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]