1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
This commit is contained in:
MoonTestUse1
2024-12-26 01:46:57 +06:00
parent fdca1ce536
commit fd51963eb6
3 changed files with 17 additions and 17 deletions

View File

@@ -1,5 +1,4 @@
# Build stage
FROM node:18-alpine as build
FROM node:18-alpine
WORKDIR /app
@@ -15,12 +14,5 @@ COPY frontend/ ./
# Собираем приложение
RUN npm run build
# Production stage
FROM nginx:alpine
# Копируем собранные файлы
COPY --from=build /app/dist /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Держим контейнер запущенным
CMD ["tail", "-f", "/dev/null"]