- FROM node:16 AS base
- WORKDIR /code
- RUN npm config set registry https://registry.npmmirror.com
- ADD package.json yarn.lock /code/
- RUN yarn install --frozen-lockfile
- ADD . /code
- RUN yarn build
- FROM nginx:1.19-alpine
- COPY nginx.conf /etc/nginx/conf.d/nginx.conf
- COPY --from=base /code/dist /var/www/html/dist/
|