Dockerfile 402 B

1234567891011121314151617181920212223
  1. FROM costbase_package_new_node_npm as build
  2. WORKDIR /home/ConstructionCost
  3. COPY package.json /home/ConstructionCost/
  4. RUN npm install
  5. FROM base-alpine-new-node:latest
  6. COPY . /home/ConstructionCost
  7. WORKDIR /home/ConstructionCost
  8. COPY --from=build /home/ConstructionCost/node_modules /home/ConstructionCost/node_modules/
  9. RUN gulp build
  10. ENV NODE_ENV=prod
  11. ENTRYPOINT ["npm", "run"]
  12. CMD ["server"]