a guest Oct 12th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- FROM node:8
- # Override the base log level (info).
- ENV NPM_CONFIG_LOGLEVEL warn
- # Install and configure `serve`.
- RUN npm install -g serve
- CMD serve -s build
- EXPOSE 5000
- # Install all dependencies of the current project.
- COPY package.json package.json
- COPY package-lock.json package-lock.json
- RUN npm install
- # Copy all local files into the image.
- COPY src src
- COPY public public
- # Build for production.
- RUN npm run build --production
RAW Paste Data