Commit 535956c7 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

refactor: npm earlier

parent f3916826
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2,11 +2,10 @@
FROM node:20.13.1 AS builder
ENV NODE_ENV=production
WORKDIR /home/node/app
RUN apt-get update && apt-get install -y --no-install-recommends dumb-init
RUN apt-get update && apt-get install -y --no-install-recommends dumb-init && npm install -g npm@10.8.0
ARG NPM_TOKEN
COPY package*.json ./
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \
   npm install -g npm@10.8.0 && \
   npm ci --omit=dev && \
   rm -f .npmrc