Skip to content

Commit 02e7088

Browse files
authored
Always update to latest npm when building docker image (#10043)
1 parent 4feab5f commit 02e7088

3 files changed

Lines changed: 32 additions & 134 deletions

File tree

scripts/publish/firebase-docker-image/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM node:lts-alpine AS app-env
22

3+
# Make sure to get the latest version of npm before doing anything else, to avoid vulnerabilities in npm's bundled dependencies.
4+
RUN npm install -g npm@latest
5+
36
# Install Python (for Cloud Functions) and Java (for emulators) and pre-cache emulator dependencies.
47
RUN apk update && \
58
apk add --no-cache python3 openjdk21-jre-headless bash && \

scripts/publish/firebase-docker-image/package-lock.json

Lines changed: 26 additions & 132 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/publish/firebase-docker-image/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"firebase-tools": "latest"
44
},
55
"overrides": {
6-
"tar": "^7.5.4",
6+
"tar": "^7.5.8",
77
"diff": "^4.0.4",
8-
"hono": "^4.11.7"
8+
"hono": "^4.11.7",
9+
"minimatch": "^10.2.3"
910
}
1011
}

0 commit comments

Comments
 (0)