Updated dockerfile

pull/1/head
Antonio De Lucreziis 2 years ago
parent 6d34b80fb2
commit 21abcba473

@ -1,15 +1,8 @@
FROM node:18 FROM node:18
RUN npm install -g pnpm
WORKDIR /app WORKDIR /app
# pnpm fetch richiede solo il file lock
COPY pnpm-lock.yaml ./
RUN pnpm fetch --prod
COPY . ./ COPY . ./
RUN pnpm install -r --offline --prod RUN npm install
CMD ["pnpm", "run", "build"] CMD ["npm", "run", "build"]

Loading…
Cancel
Save