feat: Add uv to all images

See https://astral.sh/blog/uv
This commit is contained in:
Nikolai Røed Kristiansen
2024-03-08 11:14:10 +01:00
committed by Nikolai Røed Kristiansen
parent d6c6360a91
commit a90ee5985f
5 changed files with 5 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ jobs:
tags: nikolaik/python-nodejs:${{ matrix.key }}
- name: Run smoke tests
run: |
docker run --rm nikolaik/python-nodejs:${{ matrix.key }} sh -c "node --version && npm --version && yarn --version && python --version && pip --version && pipenv --version && poetry --version"
docker run --rm nikolaik/python-nodejs:${{ matrix.key }} sh -c "node --version && npm --version && yarn --version && python --version && pip --version && pipenv --version && poetry --version && uv --version"
- name: Push image
uses: docker/build-push-action@v5
with:

View File

@@ -27,6 +27,6 @@ RUN corepack enable yarn
RUN \
apt-get update && \
apt-get upgrade -yqq && \
pip install -U pip && pip install pipenv && \
pip install -U pip pipenv uv && \
curl -sSL https://install.python-poetry.org | python - && \
rm -rf /var/lib/apt/lists/*

View File

@@ -14,6 +14,7 @@ The `latest` tag is currently:
- pip: latest
- pipenv: latest
- poetry: latest
- uv: latest
## 🏷 Tags

View File

@@ -28,7 +28,7 @@ RUN addgroup -g 1000 pn && adduser -u 1000 -G pn -s /bin/sh -D pn
RUN apk add libstdc++
COPY --from=builder /node-v{{ nodejs_canonical }}-linux-x64-musl /usr/local
RUN corepack enable yarn
RUN pip install -U pip && pip install pipenv
RUN pip install -U pip pipenv uv
# Poetry
# Mimic what https://install.python-poetry.org does without the flexibility (platforms, install sources, etc).

View File

@@ -31,5 +31,5 @@ RUN NODE_VERSION="v{{ nodejs_canonical }}" \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
RUN corepack enable yarn
RUN pip install -U pip && pip install pipenv && \
RUN pip install -U pip pipenv uv && \
curl -fsSL --compressed https://install.python-poetry.org | python -