Dockerfile 385 B

1234567891011121314151617181920212223
  1. FROM node:6.15.1 as app
  2. WORKDIR /app
  3. #wildcard as some files may not be in all repos
  4. COPY package*.json npm-shrink*.json /app/
  5. RUN npm install --quiet
  6. COPY . /app
  7. RUN npm run compile:all
  8. FROM node:6.15.1
  9. COPY --from=app /app /app
  10. WORKDIR /app
  11. RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
  12. ENTRYPOINT ["/bin/sh", "entrypoint.sh"]
  13. CMD ["node", "--expose-gc", "app.js"]