From 90c1413fa1e6fbe41227296083636568c562da65 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 29 Mar 2023 20:31:03 +0200 Subject: [PATCH] Switched dockerfile over to pnpm 8 and cache --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f581af..53bccd5 100644 --- a/Dockerfile +++ b/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 \ No newline at end of file +RUN pnpm build \ No newline at end of file