diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..36dff17 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:14 as build-stage +WORKDIR /app +COPY package*.json ./ +RUN npm install +COPY . . +RUN npm run build + +FROM nginx:alpine +COPY —from=build-stage /app/dist /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"]