Skip to content
Snippets Groups Projects
Commit 535956c7 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

refactor: npm earlier

parent f3916826
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment