db_kyc_project/nginx/Dockerfile

23 lines
368 B
Docker
Raw Permalink Normal View History

2024-12-12 22:12:00 +03:00
# stage 1 - build frontend
FROM node:16.20.0 as build-deps
WORKDIR /app
COPY ./frontend/package.json /app/
COPY ./frontend/package-lock.json /app/
RUN npm install
COPY ./frontend /app/
RUN npm run build
# stage 2 - nginx
FROM nginx:stable
2024-12-12 22:12:00 +03:00
COPY nginx/nginx.conf /etc/nginx/nginx.conf
2024-12-12 22:12:00 +03:00
COPY --from=build-deps /app/dist/ /dist/
CMD ["nginx", "-g", "daemon off;"]