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

вв22232323

This commit is contained in:
MoonTestUse1
2025-01-04 20:24:29 +06:00
parent 3363a1e848
commit 8683898ff4
2 changed files with 17 additions and 3 deletions

View File

@@ -5,14 +5,26 @@ 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
RUN npm install axios @tailwindcss/forms
# Устанавливаем tailwind и его плагины
RUN npm install -D tailwindcss postcss autoprefixer @tailwindcss/forms
# Устанавливаем дополнительные зависимости
RUN npm install axios
RUN npm rebuild rollup
# Копируем исходный код
COPY frontend/ .
# Генерируем tailwind конфигурацию
RUN npx tailwindcss init -p
# Открываем порт для Vite
EXPOSE 5173

View File

@@ -8,6 +8,8 @@ export default {
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/forms')({
strategy: 'class',
}),
],
}