1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/docker/frontend/Dockerfile
MoonTestUse1 8683898ff4 вв22232323
2025-01-04 20:24:29 +06:00

32 lines
857 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM node:18
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 postcss autoprefixer @tailwindcss/forms
# Устанавливаем дополнительные зависимости
RUN npm install axios
RUN npm rebuild rollup
# Копируем исходный код
COPY frontend/ .
# Генерируем tailwind конфигурацию
RUN npx tailwindcss init -p
# Открываем порт для Vite
EXPOSE 5173
# Запускаем Vite сервер
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]