mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
change docker
This commit is contained in:
@@ -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:
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user