No Description

Dockerfile 403B

12345678910111213141516171819202122232425
  1. # Dockerfile
  2. FROM node:6
  3. # Install Http-server globally
  4. RUN npm install http-server -g
  5. # Create app directory
  6. RUN mkdir -p /usr/src/app
  7. WORKDIR /usr/src/app
  8. # Install app dependencies
  9. COPY package.json /usr/src/app/
  10. RUN npm install
  11. # Bundle app source
  12. COPY . /usr/src/app
  13. # Build and optimize react app
  14. RUN npm run build
  15. EXPOSE 8080
  16. # defined in package.json
  17. CMD [ "npm", "run", "start:server" ]