From d5c4d9d2544c301543b0adfe53e85bd38265d5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8rl=C3=BCck=20Berg?= <36937807+henrikhorluck@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:44:59 +0200 Subject: [PATCH] Fix dev deploy by installing into global python --- .dockerignore | 1 + Dockerfile | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 2894d1e1b..4f57094a1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -32,3 +32,4 @@ static webpack.test.config.js .devcontainer meta.json +Dockerfile diff --git a/Dockerfile b/Dockerfile index ede6034a8..e058f30a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,10 +54,8 @@ RUN dnf install -y unzip \ && rm vault-lambda-extension.zip \ && rm -rf /var/cache/dnf -RUN uv sync --no-dev --extra prod --locked --no-cache && rm /bin/uv - -ENV VIRTUAL_ENV=/var/task/.venv -ENV PATH="/var/task/.venv/bin:$PATH" +# FIXME: once uv supports using uv.lock to install into system python this should actually use the lockfile +RUN uv pip install -r pyproject.toml --extra prod --verify-hashes --no-cache --system --compile-bytecode && rm /bin/uv COPY ./ $FUNCTION_DIR