Skip to content

Commit 3ce9057

Browse files
committed
optimize railway image deps to avoid build timeout
1 parent 168c2b9 commit 3ce9057

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ RUN apt-get update && \
2525
RUN pip install --no-cache-dir uv
2626

2727
COPY pyproject.toml uv.lock README.md ./
28-
COPY src ./src
29-
# Runtime deps only (project + api group).
30-
RUN uv sync --frozen --no-dev --group api
28+
# Install only API runtime dependencies; the training stack (torch/cuda) is not
29+
# needed for the web service and was causing Railway build timeouts.
30+
RUN uv sync --frozen --no-install-project --only-group api
3131

3232

3333
FROM python:3.11-slim AS runtime

0 commit comments

Comments
 (0)