Skip to content

Commit 3e9dce5

Browse files
aveaohellcp
authored andcommitted
Enforce avoiding installing dependencies
1 parent 24d178e commit 3e9dce5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM ghcr.io/astral-sh/uv:alpine3.23
22
ADD . /code
33
WORKDIR /code
4-
RUN uv sync --locked --no-dev
4+
ENV UV_NO_DEV=1
5+
ENV UV_LOCKED=1
6+
RUN uv sync
57
CMD ["uv", "run", "python", "serve_debug.py"]

Dockerfile.cloudrun

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM ghcr.io/astral-sh/uv:alpine3.23
22
ADD . /code
33
WORKDIR /code
4-
RUN uv sync --locked --no-dev
4+
ENV UV_NO_DEV=1
5+
ENV UV_LOCKED=1
6+
RUN uv sync
57
CMD uv run gunicorn --bind :$PORT --workers 1 --threads 8 cohorts:app

0 commit comments

Comments
 (0)