diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..651665b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..81f4220 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +from node:14.8.0-alpine as builder + +WORKDIR /app + +COPY package*.json /app/ +RUN npm install + +COPY ./ /app +RUN npm run build + + +FROM nginx:1.19.2-alpine + +COPY --from=builder /app/build /usr/share/nginx/html