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.

16 lines
406 B

  1. ARG NODE_VERSION="13.7"
  2. FROM node:${NODE_VERSION}-alpine AS frontend-builder
  3. COPY frontend/ /app/
  4. WORKDIR /app
  5. RUN apk add -U --no-cache git python3 make g++ \
  6. && yarn install \
  7. && yarn build \
  8. && apk del --no-cache git make g++
  9. FROM nginx:1.17.4-alpine AS runtime
  10. COPY --from=frontend-builder /app/dist /var/www/html
  11. RUN rm /etc/nginx/conf.d/default.conf
  12. COPY nginx/nginx.conf /etc/nginx/conf.d