Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:8.11.1
- # 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
- RUN npm install
- # Copy all local files into the image.
- COPY . .
- # Build for production.
- RUN npm run build:staging --production
Add Comment
Please, Sign In to add comment