Dockerfile 370 B

12345678910111213141516171819202122
  1. FROM node:10.17.0-jessie 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:10.17.0-jessie
  9. COPY --from=app /app /app
  10. WORKDIR /app
  11. RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
  12. USER node
  13. CMD ["node", "--expose-gc", "app.js"]