Switched dockerfile over to pnpm 8 and cache

This commit is contained in:
Nicolai Ort 2023-03-29 20:31:03 +02:00
parent 6df7b516aa
commit 90c1413fa1
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
FROM node:15.11.0-alpine3.13
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.16 as build
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
WORKDIR /app
RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
RUN mkdir /pnpm && pnpm config set store-dir /pnpm && pnpm i
COPY . .
RUN yarn
RUN yarn build
RUN pnpm build