Dockerfile 319 B

123456789101112131415161718
  1. FROM node:10.14.0
  2. MAINTAINER Ray Lee <ray-lee@kdanmobile.com>
  3. ARG ENV=preparing
  4. ENV ENV $ENV
  5. EXPOSE 4000
  6. WORKDIR /kangaroo_client
  7. # catch node modules
  8. ADD ./node_modules ./node_modules
  9. ADD . .
  10. ARG BRANCH=none
  11. ARG COMMIT=none
  12. LABEL branch=$BRANCH commit=$COMMIT env=$ENV
  13. CMD NODE_ENV=production ENV=$ENV yarn start