@@ -101,6 +101,91 @@ RUN curl --retry-all-errors --retry 10 -fLo coursier https://git.io/coursier-cli
101101#
102102# BUILD_PLATFORM_OTHER__END
103103
104+ FROM --platform=$BUILDPLATFORM python:3.11.3-alpine3.17 AS node_modules
105+
106+ # NPM_APK__START
107+ RUN apk add --update --no-cache \
108+ npm
109+ # NPM_APK__END
110+
111+ # ###########################
112+ # Install NPM dependencies #
113+ # ############################################################################################
114+ # # @generated by .automation/build.py using descriptor files, please do not update manually ##
115+ # ############################################################################################
116+
117+ ENV NODE_OPTIONS="--max-old-space-size=8192" \
118+ NODE_ENV=production
119+ # NPM__START
120+ WORKDIR /node-deps
121+ RUN npm --no-cache install --ignore-scripts --omit=dev \
122+ sfdx-cli \
123+ typescript \
124+ @coffeelint/cli \
125+ jscpd \
126+ stylelint \
127+ stylelint-config-standard \
128+ stylelint-config-sass-guidelines \
129+ stylelint-scss \
130+ gherkin-lint \
131+ graphql \
132+ graphql-schema-linter \
133+ npm-groovy-lint \
134+ htmlhint \
135+ eslint \
136+ eslint-config-airbnb \
137+ eslint-config-prettier \
138+ eslint-config-standard \
139+ eslint-plugin-import \
140+ eslint-plugin-jest \
141+ eslint-plugin-node \
142+ eslint-plugin-prettier \
143+ eslint-plugin-promise \
144+ eslint-plugin-vue \
145+ @babel/core \
146+ @babel/eslint-parser \
147+ @microsoft/eslint-formatter-sarif \
148+ standard \
149+ prettier \
150+ @prantlf/jsonlint \
151+ eslint-plugin-jsonc \
152+ v8r \
153+ npm-package-json-lint \
154+ npm-package-json-lint-config-default \
155+ eslint-plugin-react \
156+ eslint-plugin-jsx-a11y \
157+ markdownlint-cli \
158+ markdown-link-check \
159+ markdown-table-formatter \
160+ @stoplight/spectral-cli \
161+ secretlint \
162+ @secretlint/secretlint-rule-preset-recommend \
163+ @secretlint/secretlint-formatter-sarif \
164+ cspell \
165+ sql-lint \
166+ tekton-lint \
167+ prettyjson \
168+ @typescript-eslint/eslint-plugin \
169+ @typescript-eslint/parser && \
170+ echo "Cleaning npm cache..." \
171+ && npm cache clean --force || true \
172+ && echo "Changing owner of node_modules files..." \
173+ && chown -R "$(id -u)" :"$(id -g)" node_modules # fix for https://github.com/npm/cli/issues/5900 \
174+ && echo "Removing extra node_module files..." \
175+ && rm -rf /root/.npm/_cacache \
176+ && find . -name "*.d.ts" -delete \
177+ && find . -name "*.map" -delete \
178+ && find . -name "*.npmignore" -delete \
179+ && find . -name "*.travis.yml" -delete \
180+ && find . -name "CHANGELOG.md" -delete \
181+ && find . -name "README.md" -delete \
182+ && find . -name ".package-lock.json" -delete \
183+ && find . -name "package-lock.json" -delete \
184+ && find . -name "README.md" -delete
185+ WORKDIR /
186+
187+ # NPM__END
188+
104189FROM scratch AS copy-collector
105190
106191# #############################
@@ -224,91 +309,6 @@ RUN echo \
224309
225310# PIPVENV__END
226311
227- FROM --platform=$BUILDPLATFORM python:3.11.3-alpine3.17 AS node_modules
228-
229- # NPM_APK__START
230- RUN apk add --update --no-cache \
231- npm
232- # NPM_APK__END
233-
234- # ###########################
235- # Install NPM dependencies #
236- # ############################################################################################
237- # # @generated by .automation/build.py using descriptor files, please do not update manually ##
238- # ############################################################################################
239-
240- ENV NODE_OPTIONS="--max-old-space-size=8192" \
241- NODE_ENV=production
242- # NPM__START
243- WORKDIR /node-deps
244- RUN npm --no-cache install --ignore-scripts --omit=dev \
245- sfdx-cli \
246- typescript \
247- @coffeelint/cli \
248- jscpd \
249- stylelint \
250- stylelint-config-standard \
251- stylelint-config-sass-guidelines \
252- stylelint-scss \
253- gherkin-lint \
254- graphql \
255- graphql-schema-linter \
256- npm-groovy-lint \
257- htmlhint \
258- eslint \
259- eslint-config-airbnb \
260- eslint-config-prettier \
261- eslint-config-standard \
262- eslint-plugin-import \
263- eslint-plugin-jest \
264- eslint-plugin-node \
265- eslint-plugin-prettier \
266- eslint-plugin-promise \
267- eslint-plugin-vue \
268- @babel/core \
269- @babel/eslint-parser \
270- @microsoft/eslint-formatter-sarif \
271- standard \
272- prettier \
273- @prantlf/jsonlint \
274- eslint-plugin-jsonc \
275- v8r \
276- npm-package-json-lint \
277- npm-package-json-lint-config-default \
278- eslint-plugin-react \
279- eslint-plugin-jsx-a11y \
280- markdownlint-cli \
281- markdown-link-check \
282- markdown-table-formatter \
283- @stoplight/spectral-cli \
284- secretlint \
285- @secretlint/secretlint-rule-preset-recommend \
286- @secretlint/secretlint-formatter-sarif \
287- cspell \
288- sql-lint \
289- tekton-lint \
290- prettyjson \
291- @typescript-eslint/eslint-plugin \
292- @typescript-eslint/parser && \
293- echo "Cleaning npm cache..." \
294- && npm cache clean --force || true \
295- && echo "Changing owner of node_modules files..." \
296- && chown -R "$(id -u)" :"$(id -g)" node_modules # fix for https://github.com/npm/cli/issues/5900 \
297- && echo "Removing extra node_module files..." \
298- && rm -rf /root/.npm/_cacache \
299- && find . -name "*.d.ts" -delete \
300- && find . -name "*.map" -delete \
301- && find . -name "*.npmignore" -delete \
302- && find . -name "*.travis.yml" -delete \
303- && find . -name "CHANGELOG.md" -delete \
304- && find . -name "README.md" -delete \
305- && find . -name ".package-lock.json" -delete \
306- && find . -name "package-lock.json" -delete \
307- && find . -name "README.md" -delete
308- WORKDIR /
309-
310- # NPM__END
311-
312312# #################
313313# Get base image #
314314# #################
0 commit comments