Switched dockerfile over to pnpm 8 and cache
This commit is contained in:
parent
6df7b516aa
commit
90c1413fa1
10
Dockerfile
10
Dockerfile
|
@ -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
|
Loading…
Reference in New Issue