1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/docker/frontend/Dockerfile
2025-01-05 00:10:08 +06:00

25 lines
609 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 ./
# Устанавливаем зависимости
RUN npm install
# Устанавливаем Tailwind и его зависимости
RUN npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
# Инициализируем Tailwind
RUN npx tailwindcss init -p
# Копируем исходный код
COPY frontend/ .
# Открываем порт для Vite
EXPOSE 5173
# Запускаем Vite сервер
ENV HOST=0.0.0.0
CMD ["npm", "run", "dev", "--", "--host"]