mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-30 13:44:54 +02:00
19 lines
380 B
Docker
19 lines
380 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install uv
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|
|
|
# Copy shared directory isnide the app
|
|
COPY shared ./shared
|
|
|
|
COPY backend/pyproject.toml backend/uv.lock* ./
|
|
|
|
RUN uv sync --no-install-project
|
|
|
|
# Expose port
|
|
EXPOSE 8000
|
|
|
|
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|