Dockerfile 374 B

123456789101112131415161718192021
  1. FROM node:7.9.0-alpine
  2. # Set a working directory
  3. WORKDIR /usr/src/app
  4. COPY ./build/package.json .
  5. COPY yarn.lock .
  6. # Set CORIOLIS_URL
  7. ENV CORIOLIS_URL http://127.0.0.1
  8. COPY ./src/config.sample.js ./src/config.js
  9. # Install Node.js dependencies
  10. RUN yarn install --production --no-progress
  11. # Copy application files
  12. COPY ./build .
  13. EXPOSE 3000
  14. CMD [ "node", "server.js" ]