File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ FROM python:{{ python_image }} AS builder
66# Install node prereqs, nodejs and yarn
77# Ref: https://raw.githubusercontent.com/nodejs/docker-node/master/Dockerfile-alpine.template
88# Ref: https://yarnpkg.com/en/docs/install
9- RUN apk add curl
9+ RUN apk add --no-cache curl && rm /var/cache/apk/*
1010# FIXME: no arm + musl build yet
1111# Ref: https://github.com/nodejs/unofficial-builds/pull/59
1212# Ref: https://github.com/nodejs/node/pull/45756
@@ -19,10 +19,10 @@ FROM python:{{ python_image }}
1919LABEL org.opencontainers.image.authors="Nikolai R Kristiansen <nikolaik@gmail.com>"
2020
2121RUN addgroup -g 1000 pn && adduser -u 1000 -G pn -s /bin/sh -D pn
22- RUN apk add libstdc++
22+ RUN apk add --no-cache libstdc++ && rm /var/cache/apk/*
2323COPY --from=builder /node-v{{ nodejs_canonical }}-linux-x64-musl /usr/local
2424RUN corepack enable yarn
25- RUN pip install -U pip pipenv uv
25+ RUN pip install --no-cache-dir - U pip pipenv uv
2626
2727# Poetry
2828# Mimic what https://install.python-poetry.org does without the flexibility (platforms, install sources, etc).
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN groupadd --gid 1000 pn && useradd --uid 1000 --gid pn --shell /bin/bash --cr
88ENV POETRY_HOME=/usr/local
99
1010RUN \
11- {% if distro_variant == "slim" %} apt-get update && apt-get install curl gnupg2 xz-utils -yqq && \
11+ {% if distro_variant == "slim" %} apt-get update && apt-get install --no-install-recommends curl gnupg2 xz-utils -yqq && \
1212{% endif %} apt-get upgrade -yqq && \
1313 rm -rf /var/lib/apt/lists/*
1414RUN NODE_VERSION="v{{ nodejs_canonical }}" \
@@ -31,5 +31,5 @@ RUN NODE_VERSION="v{{ nodejs_canonical }}" \
3131 && ln -s /usr/local/bin/node /usr/local/bin/nodejs
3232RUN corepack enable yarn
3333
34- RUN pip install -U pip pipenv uv && \
34+ RUN pip install --no-cache-dir - U pip pipenv uv && \
3535 curl -fsSL --compressed https://install.python-poetry.org | python -
You can’t perform that action at this time.
0 commit comments