aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-07-11 17:10:23 -0400
committerGalen Guyer <galen@galenguyer.com>2022-07-11 17:10:23 -0400
commit935ef7d2f76cca7bc1f9840dc357de85f93a1ec2 (patch)
treecb8ee298a747d6084107266e5d2882e60a6b5daa /Dockerfile
parent3694bf061ecfe0f6733a0cb9028d044dfc8cf9d2 (diff)
Update for new dashboard frontend
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index c2eea5a..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:latest
-COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html/
+FROM cr.galenguyer.com/nginx:spa
+COPY --from=build-deps /usr/src/app/dist usr/share/nginx/html/