17 lines
340 B
Docker
17 lines
340 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src /app/src
|
|
|
|
# Opcional: user não-root
|
|
RUN useradd -m appuser
|
|
USER appuser
|
|
|
|
EXPOSE 8000
|
|
|
|
# ✅ apontar para o entrypoint correto
|
|
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"]
|