revert: clean up dockerfiles (#60996)

This commit is contained in:
Mrugesh Mohapatra
2025-06-23 14:28:22 +05:30
committed by GitHub
parent 013c13c676
commit 2aef0099af
2 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ FROM node:22-bookworm AS builder
RUN apt-get update && apt-get install -y jq
# global installs need root permissions, so have to happen before we switch to
# the node user
RUN corepack enable
RUN npm i -g pnpm@10
# node images create a non-root user that we can use
USER node
WORKDIR /home/node/build
@@ -41,7 +41,7 @@ COPY --chown=node:node pnpm*.yaml .
COPY --chown=node:node package.json .
COPY --chown=node:node api/ api/
COPY --chown=node:node shared/ shared/
RUN corepack enable
RUN npm i -g pnpm@10
# Weirdly this config does not seem necessary for the new api (the same number
# of deps are installed in both cases), but I'm including it just for