Dockerfile 229 B

1234567891011
  1. # ---- Dependencies ----
  2. FROM node:16-alpine AS build
  3. WORKDIR /app
  4. COPY . .
  5. RUN yarn install
  6. RUN yarn build
  7. FROM nginx:1.24-alpine
  8. COPY --from=build /app/dist /usr/share/nginx/html
  9. EXPOSE 80
  10. CMD [ "nginx", "-g", "daemon off;" ]