Skip to content

Commit 1d2206e

Browse files
build: refactor poetry venv
1 parent c12a385 commit 1d2206e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ FROM public.ecr.aws/spacelift/runner-pulumi-python:v3.137.0 as runner
4242

4343
ARG HOME="/home/spacelift"
4444
ARG VENV="/opt/venv"
45-
ENV PATH="${VENV}/bin:${HOME}/.local/bin:$PATH"
45+
ENV VIRTUAL_ENV=$VENV
46+
ENV PATH="${VIRTUAL_ENV}/bin:${HOME}/.local/bin:$PATH"
47+
48+
ENV POETRY_VIRTUALENVS_CREATE=false
49+
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
4650

4751
COPY --from=builder $VENV $VENV
4852

0 commit comments

Comments
 (0)