mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
вв222323232231в
This commit is contained in:
@@ -2,16 +2,18 @@ FROM node:18
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Копируем файлы package.json и package-lock.json
|
||||
# Копируем package.json и package-lock.json
|
||||
COPY frontend/package*.json ./
|
||||
|
||||
# Очищаем cache и node_modules
|
||||
RUN npm cache clean --force
|
||||
RUN rm -rf node_modules
|
||||
|
||||
# Устанавливаем зависимости и обновляем package-lock.json
|
||||
# Устанавливаем зависимости
|
||||
RUN npm install
|
||||
|
||||
# Устанавливаем Tailwind и его зависимости
|
||||
RUN npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
|
||||
|
||||
# Инициализируем Tailwind
|
||||
RUN npx tailwindcss init -p
|
||||
|
||||
# Копируем исходный код
|
||||
COPY frontend/ .
|
||||
|
||||
|
Reference in New Issue
Block a user