Dockerfile 572 B

123456789101112131415161718
  1. FROM node:7
  2. WORKDIR /code
  3. COPY package.json /code/
  4. RUN npm install
  5. RUN wget 'https://raw.githubusercontent.com/google/palette.js/master/palette.js'
  6. RUN ln -s src/webpack.config.js webpack.config.js
  7. RUN ln -s src/index.html index.html
  8. # To install packages and then save them to package.json,
  9. # 1. Add something like `RUN npm install webpack-dev-server --save-dev` here.
  10. # 2. After the container is built, run
  11. #
  12. # docker run --rm -ti dragnn-viz-dev cat package.json | jq . \
  13. # > $dragnn/viz/package.json
  14. EXPOSE 9000
  15. CMD node_modules/.bin/webpack-dev-server