deflorator1980

Docker FROM

Jul 20th, 2018
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. FROM node:alpine
  2. WORKDIR /app
  3. COPY package.json /app
  4. RUN npm i
  5. COPY . /app
  6. RUN npm run build
  7.  
  8. FROM nginx:alpine
  9. RUN rm /etc/nginx/conf.d/default.conf
  10. COPY nginx.conf /etc/nginx/nginx.conf
  11. COPY --from=0 /app/dist/ /app/dist/
Add Comment
Please, Sign In to add comment