File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
# ##############################################################################
2
2
FROM node:22.8.0-alpine3.20 AS base
3
3
4
- RUN apk add --update --no-cache make
5
- RUN apk upgrade --update --no-cache openssl libcrypto3 libssl3 # FIX CVE-2024-5535
4
+ RUN apk add --update --no-cache make \
5
+ && apk upgrade --update --no-cache openssl libcrypto3 libssl3 # FIX CVE-2024-5535
6
6
7
7
ENV WORKDIR=/app
8
8
WORKDIR ${WORKDIR}
@@ -13,10 +13,9 @@ FROM base AS lint
13
13
ENV WORKDIR=/app
14
14
WORKDIR ${WORKDIR}
15
15
16
- RUN apk add --update --no-cache make nodejs npm
17
- RUN apk add --update --no-cache yamllint
18
-
19
- RUN npm install -g --ignore-scripts markdownlint-cli
16
+ RUN apk add --update --no-cache make nodejs npm \
17
+ && apk add --update --no-cache yamllint \
18
+ && npm install -g --ignore-scripts markdownlint-cli
20
19
21
20
# [!TIP] Use a bind-mount to "/app" to override following "copys"
22
21
# for lint and test against "current" sources in this stage
@@ -121,8 +120,8 @@ COPY ./Makefile ${WORKDIR}/
121
120
COPY ./package.json ${WORKDIR}/package.json
122
121
COPY ./package-lock.json ${WORKDIR}/package-lock.json
123
122
124
- RUN npm ci --verbose --omit=dev --omit=optional --ignore-scripts --no-cache
125
- RUN ls -alh
123
+ RUN npm ci --verbose --omit=dev --omit=optional --ignore-scripts --no-cache \
124
+ && ls -alh
126
125
127
126
USER node
128
127
CMD ["ls" , "-alh" ]
You can’t perform that action at this time.
0 commit comments