From 7cbdc5338539decc5b3a29a1297c3407f9a30abe Mon Sep 17 00:00:00 2001 From: shahyashish <95119920+shahyashish@users.noreply.github.com> Date: Wed, 15 Apr 2026 08:08:33 +0530 Subject: [PATCH] Fix issue #1314: Docker build npm creds --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 221502bfe..c9f4de2c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,8 +19,8 @@ ENV APP_VERSION=$APP_VERSION ARG BUILD_SHA="UNKNOWN" ENV BUILD_SHA=$BUILD_SHA -COPY .npmrc package*.json /tmp/ -RUN cd /tmp && npm install --production +COPY package*.json /tmp/ +RUN --mount=type=secret,id=npmrc,target=/tmp/.npmrc cd /tmp && npm install --production RUN mkdir -p "${APPDIR}" && cp -a /tmp/node_modules "${APPDIR}" WORKDIR "${APPDIR}"