aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-10-29 12:25:45 -0400
committerGalen Guyer <galen@galenguyer.com>2021-10-29 12:25:45 -0400
commit3694bf061ecfe0f6733a0cb9028d044dfc8cf9d2 (patch)
tree8d663ee1997698e38b0c0fb6dcf5ffb66b968893 /Dockerfile
parent0216f8879440ce73d90a9e58cc5eac68240e9fdd (diff)
use yarn in dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 3 insertions, 4 deletions
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/