1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

change docker

This commit is contained in:
MoonTestUse1
2024-12-23 23:05:51 +06:00
parent 21c61ce8da
commit 9c3d9d00b7
2 changed files with 9 additions and 10 deletions

View File

@@ -3,12 +3,11 @@ version: '3.8'
services: services:
frontend: frontend:
build: build:
context: ./frontend context: .
dockerfile: ../docker/frontend/Dockerfile dockerfile: docker/frontend/Dockerfile
container_name: support-frontend volumes:
restart: unless-stopped - frontend_build:/usr/share/nginx/html
depends_on:
- backend
backend: backend:
build: build:

View File

@@ -14,6 +14,6 @@ COPY . .
# Собираем приложение # Собираем приложение
RUN npm run build RUN npm run build
# Копируем собранные файлы в volume # Nginx этап
VOLUME ["/dist"] FROM nginx:alpine
CMD ["cp", "-r", "/app/dist/.", "/dist/"] COPY --from=build /app/dist /usr/share/nginx/html