mirror of
https://github.com/nikolaik/docker-python-nodejs.git
synced 2025-09-05 23:27:57 +03:00
committed by
Nikolai Røed Kristiansen
parent
d6c6360a91
commit
a90ee5985f
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -67,7 +67,7 @@ jobs:
|
|||||||
tags: nikolaik/python-nodejs:${{ matrix.key }}
|
tags: nikolaik/python-nodejs:${{ matrix.key }}
|
||||||
- name: Run smoke tests
|
- name: Run smoke tests
|
||||||
run: |
|
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
|
- name: Push image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ RUN corepack enable yarn
|
|||||||
RUN \
|
RUN \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get upgrade -yqq && \
|
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 - && \
|
curl -sSL https://install.python-poetry.org | python - && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ The `latest` tag is currently:
|
|||||||
- pip: latest
|
- pip: latest
|
||||||
- pipenv: latest
|
- pipenv: latest
|
||||||
- poetry: latest
|
- poetry: latest
|
||||||
|
- uv: latest
|
||||||
|
|
||||||
## 🏷 Tags
|
## 🏷 Tags
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ RUN addgroup -g 1000 pn && adduser -u 1000 -G pn -s /bin/sh -D pn
|
|||||||
RUN apk add libstdc++
|
RUN apk add libstdc++
|
||||||
COPY --from=builder /node-v{{ nodejs_canonical }}-linux-x64-musl /usr/local
|
COPY --from=builder /node-v{{ nodejs_canonical }}-linux-x64-musl /usr/local
|
||||||
RUN corepack enable yarn
|
RUN corepack enable yarn
|
||||||
RUN pip install -U pip && pip install pipenv
|
RUN pip install -U pip pipenv uv
|
||||||
|
|
||||||
# Poetry
|
# Poetry
|
||||||
# Mimic what https://install.python-poetry.org does without the flexibility (platforms, install sources, etc).
|
# Mimic what https://install.python-poetry.org does without the flexibility (platforms, install sources, etc).
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ RUN NODE_VERSION="v{{ nodejs_canonical }}" \
|
|||||||
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
|
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
|
||||||
RUN corepack enable yarn
|
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 -
|
curl -fsSL --compressed https://install.python-poetry.org | python -
|
||||||
|
|||||||
Reference in New Issue
Block a user