Files
reader-api/Dockerfile
T
virtus 5ef1577344
Build and Push Reader API Image / docker (push) Successful in 30s
fix(docker): ensure all necessary directories are copied to the Docker image
2026-04-30 02:13:55 +07:00

21 lines
359 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
RUN pip install --no-cache-dir uv
COPY pyproject.toml ./
RUN uv sync --no-dev
COPY app ./app
COPY prisma ./prisma
COPY scripts ./scripts
COPY migrations ./migrations
EXPOSE 8000
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]