Files
rengine/api/Dockerfile
T
2026-09-27 17:25:27 +05:30

54 lines
1.1 KiB
Docker

FROM python:3.13-slim AS base
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONPATH=/app \
UV_NO_SYNC=1
WORKDIR /app
COPY --from=ghcr.io/astral-sh/uv:0.12.13 /uv /usr/local/bin/uv
##################################################################
# Development
##################################################################
FROM base AS development
COPY shared /app/shared
COPY tools /app/tools
COPY api/pyproject.toml api/uv.lock* ./
RUN uv sync --no-install-project
EXPOSE 8000
COPY api/entrypoint.sh /app/entrypoint.sh
CMD ["/app/entrypoint.sh"]
##################################################################
# Production: what dev mounts from the host is copied in
##################################################################
FROM development AS production
COPY api/app /app/app
COPY stages /app/stages
COPY reports /app/reports
COPY interest /app/interest
COPY mcp /app/mcp
COPY channels /app/channels
COPY connectors /app/connectors
COPY toolbox /app/toolbox
COPY binaries /app/binaries
COPY alembic /app/alembic
COPY alembic.ini /app/alembic.ini
ENV API_RELOAD=false
CMD ["/app/entrypoint.sh"]