This repository has no description
1FROM python:3.12-slim
2
3WORKDIR /app
4
5# git mode clones REC_DATA_GIT_URL at boot (SSH remotes need openssh-client).
6RUN apt-get update \
7 && apt-get install -y --no-install-recommends git openssh-client ca-certificates \
8 && rm -rf /var/lib/apt/lists/*
9
10COPY pyproject.toml ./
11COPY app ./app
12RUN pip install --no-cache-dir .
13
14EXPOSE 8000
15
16# PORT lets hosts (Cloud Run, Fly, etc.) inject the listen port.
17ENV PORT=8000
18CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT}"]