From 264e571b0ca34d24f4997c5864a43d4f475e14dc Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Wed, 13 Apr 2022 19:10:44 -0400 Subject: full version 2 re-write --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 79f34ae..e622619 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM node:12.17 as build-deps +FROM node:16 as build-deps WORKDIR /usr/src/app -COPY package.json yarn.lock ./ -RUN yarn +COPY package.json pnpm-lock.yaml ./ +RUN npm install --global pnpm && \ + pnpm install COPY . ./ -RUN yarn build +RUN pnpm run build FROM cr.galenguyer.com/nginx:spa -COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html/ +COPY --from=build-deps /usr/src/app/dist usr/share/nginx/html/ -- cgit v1.2.3