mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
вв222323232231в231
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user