Skip to content

Commit 584cb4e

Browse files
committed
fix: No need to rm cache dir with apk --no-cache
Ref: https://github.com/hadolint/hadolint/wiki/DL3019
1 parent f9ba22d commit 584cb4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/alpine.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
88
# Install node prereqs, nodejs and yarn
99
# Ref: https://raw.githubusercontent.com/nodejs/docker-node/master/Dockerfile-alpine.template
1010
# Ref: https://yarnpkg.com/en/docs/install
11-
RUN apk add --no-cache curl && rm /var/cache/apk/*
11+
RUN apk add --no-cache curl
1212
# FIXME: no arm + musl build yet
1313
# Ref: https://github.com/nodejs/unofficial-builds/pull/59
1414
# Ref: https://github.com/nodejs/node/pull/45756
@@ -21,7 +21,7 @@ FROM python:{{ python_image }}
2121
LABEL org.opencontainers.image.authors="Nikolai R Kristiansen <[email protected]>"
2222

2323
RUN addgroup -g 1000 pn && adduser -u 1000 -G pn -s /bin/sh -D pn
24-
RUN apk add --no-cache libstdc++ && rm /var/cache/apk/*
24+
RUN apk add --no-cache libstdc++
2525
COPY --from=builder /node-v{{ nodejs_canonical }}-linux-x64-musl /usr/local
2626

2727
RUN npm install -g corepack && corepack enable yarn

0 commit comments

Comments
 (0)