diff --git a/Dockerfile b/Dockerfile
index 96de6974b27ffa0d56b87506a009be1a8ae9371f..3fc812c87f55767ee26ebf7e0585e63a8465d011 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,14 @@
-# --------------> The builder image
+# The builder image
 FROM node:23.6.0 AS builder
 ENV NODE_ENV=production
 WORKDIR /app
 ARG NPM_TOKEN
 COPY package*.json ./
-RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \
-   npm ci --omit=dev && \
-   rm -f .npmrc
+RUN --mount=type=secret,id=npmrc,target=/home/node/.npmrc \
+    npm ci --omit=dev
 COPY . .
 RUN npm run build
 
-# --------------> The production image
+# The production image
 FROM nginxinc/nginx-unprivileged:1.27.3 AS production
 COPY --from=builder /app/build/ /usr/share/nginx/html/