school project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 311B

1234567891011121314151617181920
  1. FROM node:8
  2. ADD . /opt/build
  3. WORKDIR /opt/build
  4. RUN yarn && yarn buildServer && yarn build
  5. FROM node:8
  6. COPY --from=0 /opt/build/dist /opt/app/dist
  7. COPY --from=0 /opt/build/package.json /opt/build/yarn.lock /opt/app/
  8. WORKDIR /opt/app
  9. RUN yarn install --prod
  10. EXPOSE 3000
  11. ENTRYPOINT [ "yarn", "start" ]