aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-09-01 13:01:21 -0400
committerGalen Guyer <galen@galenguyer.com>2021-09-01 13:01:21 -0400
commit21cce2532232f11548595474b414fb4ba7deaf1f (patch)
treead522927f5991d2e937656d625e8b572df1fd231 /Dockerfile
parenta377aa396c9de23157eb35b8136081cf150d098e (diff)
update for new semester, oops forgot to commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 7 insertions, 7 deletions
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/