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:
frontend:
build:
context: ./frontend
dockerfile: ../docker/frontend/Dockerfile
container_name: support-frontend
restart: unless-stopped
depends_on:
- backend
context: .
dockerfile: docker/frontend/Dockerfile
volumes:
- frontend_build:/usr/share/nginx/html
backend:
build:

View File

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