db_kyc_project/nginx/Dockerfile
Michail Kostochka b2fb2f9380 Various fixes
- cleaned up Dockefiles
- added healthchecks to docker-compose files
- moved celery & celery-beat to one container
- cleaned up nginx config
2024-12-16 19:13:27 +03:00

25 lines
397 B
Docker

# 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
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY backend/static /static
COPY --from=build-deps /app/dist/ /dist/
CMD ["nginx", "-g", "daemon off;"]