aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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/