Skip to content

Commit 87f4a25

Browse files
committed
Install npm and pnpm correctly
1 parent 0085537 commit 87f4a25

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

dogfood/Dockerfile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
210210
RUN source $NVM_DIR/nvm.sh && \
211211
nvm install $NODE_VERSION && \
212212
nvm use $NODE_VERSION
213-
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
214-
ENV PATH=$NVM_DIR/v$NODE_VERSION/bin:$PATH
215-
RUN corepack use pnpm@9.6.0 && corepack cache clean
213+
ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
214+
# Allow patch updates for npm and pnpm
215+
RUN npm install -g npm@^10.8
216+
RUN npm install -g pnpm@^9.6
216217

217218
# Ensure PostgreSQL binaries are in the users $PATH.
218219
RUN update-alternatives --install /usr/local/bin/initdb initdb /usr/lib/postgresql/16/bin/initdb 100 && \
@@ -284,15 +285,6 @@ RUN curl --silent --show-error --location --output /usr/local/bin/cloud_sql_prox
284285
curl --silent --show-error --location "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" | \
285286
tar --extract --gzip --directory=/usr/local/bin --file=- trivy
286287

287-
# Add Vercel globally. We can't install it in packages.json, because it
288-
# includes Go files which make golangci-lint unhappy.
289-
RUN yarn global add --prefix=/usr/local \
290-
vercel \
291-
typescript \
292-
typescript-language-server \
293-
prettier && \
294-
yarn cache clean
295-
296288
# We use yq during "make deploy" to manually substitute out fields in
297289
# our helm values.yaml file. See https://github.com/helm/helm/issues/3141
298290
#

0 commit comments

Comments
 (0)