Skip to content

Commit

Permalink
build: Pin pnpm version in dockerfiles (microsoft#14830)
Browse files Browse the repository at this point in the history
Related to microsoft#14815.

This change pins the pnpm version installed in Docker images to 7.30.5,
the same version we use elsewhere in the CI pipeline.
  • Loading branch information
tylerbutler authored and kian-thompson committed Mar 28, 2023
1 parent ffbad96 commit 323af7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/gitrest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY scripts/*.* ./scripts/
COPY packages/gitrest/package*.json packages/gitrest/
COPY packages/gitrest-base/package*.json packages/gitrest-base/

RUN npm install --global pnpm
RUN npm install --global pnpm@7.30.5

# Need to set the --unsafe-perm flag since we are doing the install as root. Consider adding an 'app' accout so we
# can do the install as node but then switch to 'app' to run. As app we won't be able to write to installed files
Expand Down
2 changes: 1 addition & 1 deletion server/historian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COPY scripts/*.* ./scripts/
COPY packages/historian/package.json packages/historian/
COPY packages/historian-base/package.json packages/historian-base/

RUN npm install --global pnpm
RUN npm install --global pnpm@7.30.5

# Need to set the --unsafe-perm flag since we are doing the install as root. Consider adding an 'app' accout so we
# can do the install as node but then switch to 'app' to run. As app we won't be able to write to installed files
Expand Down
2 changes: 1 addition & 1 deletion server/routerlicious/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ COPY packages/services-utils/package*.json packages/services-utils/
COPY packages/test-utils/package*.json packages/test-utils/
COPY packages/protocol-base/package*.json packages/protocol-base/

RUN npm install --global pnpm
RUN npm install --global pnpm@7.30.5

# Need to set the --unsafe-perm flag since we are doing the install as root. Consider adding an 'app' accout so we
# can do the install as node but then switch to 'app' to run. As app we won't be able to write to installed files
Expand Down

0 comments on commit 323af7f

Please sign in to comment.