mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
change docker
This commit is contained in:
@@ -2,11 +2,18 @@ FROM node:18-alpine as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
# Копируем файлы package.json
|
||||
COPY frontend/package*.json ./
|
||||
|
||||
COPY . .
|
||||
# Устанавливаем зависимости
|
||||
RUN npm ci
|
||||
|
||||
# Копируем исходники
|
||||
COPY frontend/ ./
|
||||
|
||||
# Собираем приложение
|
||||
RUN npm run build
|
||||
|
||||
# Финальный этап
|
||||
FROM scratch
|
||||
COPY --from=builder /app/dist /dist
|
||||
|
Reference in New Issue
Block a user