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

вв222323232231в231

This commit is contained in:
MoonTestUse1
2025-01-05 00:14:55 +06:00
parent bfd41d5590
commit 2cff9a4e44
4 changed files with 61 additions and 18 deletions

View File

@@ -5,18 +5,19 @@ WORKDIR /app
# Копируем package.json и package-lock.json
COPY frontend/package*.json ./
# Очищаем cache и node_modules
RUN npm cache clean --force
RUN rm -rf node_modules
# Устанавливаем зависимости
RUN npm install
# Устанавливаем Tailwind и его зависимости
RUN npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
# Инициализируем Tailwind
RUN npx tailwindcss init -p
# Копируем исходный код
COPY frontend/ .
# Создаем .env файл
RUN echo "VITE_API_URL=/api" > .env
# Открываем порт для Vite
EXPOSE 5173