Dockerfile 237 B

12345678910
  1. FROM node:18-alpine as frontend_build
  2. ARG BACKEND
  3. WORKDIR /app
  4. COPY . /app
  5. RUN npm install --force
  6. RUN npm run build
  7. FROM nginx
  8. COPY --from=frontend_build /app/build/ /usr/share/nginx/html
  9. COPY /nginx.conf /etc/nginx/conf.d/default.conf