diff --git a/Dockerfile b/Dockerfile index dfb4a49..8df76bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ FROM base AS build COPY package*.json tsconfig.json .npmrc ./ # Install +ARG NPM_TOKEN +ENV NPM_TOKEN ${NPM_TOKEN} RUN npm install # Copy the app @@ -29,6 +31,8 @@ FROM node:lts-alpine # Install dependencies but skip dev dependencies COPY --from=build /app/package*.json /app/.npmrc ./ +ARG NPM_TOKEN +ENV NPM_TOKEN ${NPM_TOKEN} RUN npm install --only=production # Copy the app