diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5222aff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +#stage 1 +FROM node:latest as node +WORKDIR /app +COPY . . +RUN npm install +RUN npm run build --prod +#stage 2 +FROM nginx:alpine +COPY --from=node /app/dist/demo-app /usr/share/nginx/html