From 21cce2532232f11548595474b414fb4ba7deaf1f Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Wed, 1 Sep 2021 13:01:21 -0400 Subject: update for new semester, oops forgot to commit --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index e3859c0..a1d584a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM node:12.16.2 as build-deps +FROM node:12.17 as build-deps +RUN npm i -g pnpm WORKDIR /usr/src/app -COPY package.json yarn.lock ./ -RUN yarn +COPY package.json ./ +RUN pnpm i COPY . ./ -RUN yarn build +RUN pnpm build -FROM docker.galenguyer.com/nginx-auto/nginx-react -COPY --from=build-deps /usr/src/app/build /var/www/html/ -CMD ["nginx", "-g", "daemon off;"] +FROM cr.galenguyer.com/nginx/spa:latest +COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html/ -- cgit v1.2.3