create docker file

pull/7/head
Clement FERRERE 3 years ago
parent 88aebb3259
commit 15f607122f
  1. 9
      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
Loading…
Cancel
Save