aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorbndw <benjamindwoodward@gmail.com>2020-06-08 20:33:12 -0700
committerbndw <benjamindwoodward@gmail.com>2020-06-08 20:33:12 -0700
commita37a38c5367e480f6c27f0a8d7a415f5ed3ae99d (patch)
treeb7aedbda7f2235f6a079f5321fa7e21dfec0b8a5 /Dockerfile
parent25a045e4e0b7f6ab166d2c1936361fe77892295f (diff)
:construction_worker: CI: Multi-stage build
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 15ee3a9..5a5f92f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,2 +1,11 @@
1FROM mhart/alpine-node:14 as builder
2
3WORKDIR /tmp
4COPY . .
5
6RUN yarn && yarn build
7
8###
9# production image
1FROM nginx:stable-alpine 10FROM nginx:stable-alpine
2COPY build /usr/share/nginx/html 11COPY --from=builder /tmp/build /usr/share/nginx/html