From 42beedc21d6a2f6c59252aa5e7e1f1bb332bd18e Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Fri, 29 Oct 2021 12:31:16 -0400 Subject: use yarn in dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a1d584a..c2eea5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ FROM node:12.17 as build-deps -RUN npm i -g pnpm WORKDIR /usr/src/app -COPY package.json ./ -RUN pnpm i +COPY package.json yarn.lock ./ +RUN yarn COPY . ./ -RUN pnpm build +RUN yarn build FROM cr.galenguyer.com/nginx/spa:latest COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html/ -- cgit v1.2.3