summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..ea33239
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
+FROM node:alpine AS builder
+WORKDIR /app
+COPY . .
+RUN yarn && yarn run build
+
+FROM nginx:alpine
+RUN rm -rf /usr/share/nginx/html/*
+COPY --from=builder /app/public /usr/share/nginx/html
+CMD ["nginx", "-g", "daemon off;"]