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

Починка админки полностью22

This commit is contained in:
MoonTestUse1
2025-01-01 23:25:38 +06:00
parent a8e32d2f36
commit 1eeb47ac11
2 changed files with 18 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
WORKDIR /app
@@ -6,5 +6,14 @@ COPY frontend/package*.json ./
RUN npm install
# В dev режиме не копируем исходники, они будут монтироваться через volume
CMD ["npm", "run", "dev"]
COPY frontend .
RUN npm run build
FROM nginx:alpine
COPY --from=0 /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]