Skip to content

Commit

Permalink
fix(build): install Poetry via apk instead of pip (#2488)
Browse files Browse the repository at this point in the history
The switch from `google/cloud-sdk:449.0.0-alpine` to
`gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine` was not a
drop-in replacement:

This moved from Alpine 3.18.4 to 3.20.2 and 3.20.2 is more intolerant of
the `pip install poetry==1.8.3` being performed:

```
error: externally-managed-environment
```

Install Poetry via `apk` instead.
  • Loading branch information
andrewpollock authored Aug 19, 2024
1 parent 07aca54 commit 80b888f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vulnfeeds/tools/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine@sha256:d5da0344b23d0
# this project as it runs on kubernetes, but it keeps it consistent with other cloud run images
ENV POETRY_VIRTUALENVS_IN_PROJECT=true

RUN apk --no-cache add py3-pip \
&& pip install poetry==1.8.3
RUN apk --no-cache add poetry

RUN mkdir /src
WORKDIR /src
Expand Down

0 comments on commit 80b888f

Please sign in to comment.