Skip to content

Commit 6665e53

Browse files
committed
morevenv
1 parent be3dd7d commit 6665e53

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ COPY package.json package-lock.json ./
1818
RUN --mount=type=cache,target=/root/.npm \
1919
npm install --frozen-lockfile
2020

21+
# Use a directory that's not volume-mounted
22+
ENV VIRTUAL_ENV=/venv
23+
ENV PATH="/venv/bin:$PATH"
2124
COPY requirements.txt ./
2225
# hadolint ignore=DL3013,DL3042
2326
RUN --mount=type=cache,target=/root/.cache \
24-
uv venv /venv \
25-
&& /venv/bin/uv pip sync --quiet requirements.txt
27+
uv venv \
28+
&& uv pip sync --quiet requirements.txt
2629

27-
ENV PATH="/venv/bin:$PATH"
2830

2931
RUN mkdir -p static
3032

0 commit comments

Comments
 (0)