Dockerfile 322 B

123456789101112
  1. FROM node:16-alpine as builder
  2. WORKDIR /code
  3. RUN yarn config set registry https://registry.npmmirror.com
  4. ADD package.json /code
  5. ADD yarn.lock /code
  6. RUN yarn install
  7. ADD . /code
  8. RUN yarn build --spa
  9. FROM nginx:1.19-alpine
  10. #COPY nginx.conf /etc/nginx/conf.d/seecoder.conf
  11. COPY --from=builder /code/dist/ /var/www/html/dist/