✨ Добавлен русский язык + исправлены критические баги
🌍 Интернационализация: - Добавлен русский язык в i18n.ts (supportedLngs) - Русский пункт меню в NavBar.tsx (desktop + mobile) - Полная локализация страницы RobotCreate.tsx - Расширен ru.json: robotCreate (60+ ключей) + mainmenu 🐛 Исправления: - PostCSS баг в vite.config.js (css.postcss: false → { plugins: [] }) - Backend URL конфигурация (8081 вместо 8080) - API ключи теперь генерируются корректно 🔧 Конфигурация: - docker-compose.yml: host network mode - Dockerfile.frontend обновлен - Добавлены postcss конфиги ✅ Все сервисы работают: - Frontend: http://localhost:5174 - Backend: http://localhost:8081 - PostgreSQL: 5433 - MinIO: 9020/9021
This commit is contained in:
@@ -8,15 +8,22 @@ COPY package*.json ./
|
||||
# Install dependencies
|
||||
RUN npm install --legacy-peer-deps
|
||||
|
||||
# Copy frontend source code and config
|
||||
COPY src ./src
|
||||
COPY public ./public
|
||||
COPY index.html ./
|
||||
# Copy all configuration files first
|
||||
COPY vite.config.js ./
|
||||
COPY tsconfig.json ./
|
||||
COPY index.html ./
|
||||
COPY vite-env.d.ts ./
|
||||
COPY postcss.config.mjs ./
|
||||
|
||||
# Copy frontend source code
|
||||
COPY src ./src
|
||||
COPY public ./public
|
||||
|
||||
# Build production bundle
|
||||
RUN npm run build
|
||||
|
||||
# Expose the frontend port
|
||||
EXPOSE ${FRONTEND_PORT:-5173}
|
||||
|
||||
# Start the frontend using the client script
|
||||
CMD ["npm", "run", "client", "--", "--host"]
|
||||
# Serve static files using built-in Vite preview
|
||||
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "5173"]
|
||||
Reference in New Issue
Block a user