Dockerfile 421 B

123456789101112131415161718192021
  1. FROM operationbase:2.0 as build
  2. WORKDIR /ConstructionOperation
  3. COPY package.json /ConstructionOperation
  4. RUN mkdir tmp \
  5. && cnpm install --registry=https://registry.npmmirror.com/
  6. FROM base-alpine:latest
  7. COPY --from=build /ConstructionOperation /ConstructionOperation
  8. COPY . /ConstructionOperation
  9. WORKDIR /ConstructionOperation
  10. ENV NODE_ENV=prod
  11. ENTRYPOINT babel-node --max_old_space_size=2048 operation.js