Skip to content

Commit

Permalink
Fix dev deploy by installing into global python
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Aug 19, 2024
1 parent 0a41ce7 commit d5c4d9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ static
webpack.test.config.js
.devcontainer
meta.json
Dockerfile
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d5c4d9d

Please sign in to comment.