From 5f6c67bc705066f686bcd0f566985cf33fcd2f4a Mon Sep 17 00:00:00 2001 From: "f.saravi" Date: Wed, 22 Sep 2021 18:44:17 +0000 Subject: [PATCH] Add 'Dockerfile' --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b53a884 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +Raw +Permalink +Blame +History + +FROM node:16.7.0-alpine AS builder + +WORKDIR /app + +COPY package*.json ./ + +RUN yarn + +COPY . . + +RUN yarn build + + +FROM nginx:1.21.1 + +COPY --from=builder /app/dist /usr/share/nginx/html \ No newline at end of file