Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:8.11.1-alpine
- # Provides cached layer for node_modules
- ADD package.json /tmp/package.json
- RUN cd /tmp && npm install
- RUN mkdir -p /app && cp -a /tmp/node_modules /app/node_modules
- # Define working directory
- WORKDIR /app
- # Add everything in the current directory to our image, in the 'app' folder.
- COPY ./src/ ./src
- COPY ./public/ ./public
- COPY ./package.json ./package.json
- #RUN npm install -g npm-run-all
- #RUN npm install -g [email protected]
- #RUN npm install -g [email protected]
- RUN npm run build
- # Run our app.
- CMD ["npm", "start"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement