-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 824 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (20 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.12-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
# git: the eval pre-registration check falls back to `git ls-remote --tags`
# against GitHub when the container has no checkout ( Railway single-image deploy )
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md ./
COPY reflex ./reflex
COPY packages ./packages
COPY data ./data
COPY apps/api ./apps/api
COPY apps/workers ./apps/workers
COPY apps/eval ./apps/eval
COPY alembic ./alembic
COPY alembic.ini ./
RUN pip install -e .
EXPOSE 8000
# Render/Railway inject PORT; plain Docker (and Antideploy) leaves it unset
# and the app should keep listening on 8000.
CMD ["sh", "-c", "exec uvicorn reflex.api.main:app --host 0.0.0.0 --port ${PORT:-8000}"]