Cinematch / services /api /Dockerfile
Amit-kr26's picture
fix: Dockerfiles — use non-root user and pip install from pyproject.toml
9e2d517
Raw
History Blame Contribute Delete
201 Bytes
FROM python:3.12-slim
WORKDIR /app
COPY pyproject.toml .
RUN pip install --no-cache-dir .
RUN adduser --disabled-password --gecos "" appuser
USER appuser
COPY . .
EXPOSE 8000
CMD ["python", "main.py"]