chore: Update Dockerfile to use Node.js 20 and revise README for updated Node.js version
Publish Tabler Docker image / build-and-push-tabler (push) Has been cancelled

This commit is contained in:
2025-07-08 23:14:49 +07:00
parent 1eb3e9d3f6
commit 68d7d55c8b
3 changed files with 38 additions and 6 deletions
+32
View File
@@ -0,0 +1,32 @@
# Changelog
## [2024-07-08] - Tabler Core Integration
### Added
- Integrated `@tabler/core` package for 100% authentic Tabler UI
- Official Tabler CSS and components
- Better performance and smaller bundle size
### Changed
- Updated Node.js requirement from 18 to 20 (required by @tabler/core)
- Simplified CSS by removing custom Tabler styles
- Replaced React-Bootstrap components with native Tabler classes
- Updated Dockerfile to use Node.js 20
### Removed
- Custom Tabler CSS variables and styles
- React-Bootstrap dependency (still available but not used)
- Duplicate styling code
### Technical Details
- `@tabler/core` requires Node.js >= 20
- Vite 7.0+ requires Node.js >= 20
- All existing functionality preserved
- Better TypeScript support
- Improved accessibility
### Migration Notes
- No breaking changes for users
- Backend remains unchanged
- Docker images now use Node.js 20
- CI/CD pipelines updated automatically
+2 -2
View File
@@ -1,5 +1,5 @@
# Stage 1: Build React frontend
FROM node:18-slim AS frontend-builder
FROM node:20-slim AS frontend-builder
WORKDIR /app/frontend
# Copy package.json ONLY and install dependencies from scratch
@@ -12,7 +12,7 @@ COPY frontend/ .
RUN npm run build
# Stage 2: Setup Node.js backend and serve everything
FROM node:18-slim
FROM node:20-slim
WORKDIR /app
# Copy package.json ONLY and install production dependencies from scratch
+4 -4
View File
@@ -12,15 +12,15 @@
- **Сохранение в S3:** Все изменения сохраняются непосредственно в файлах в бакете Yandex Cloud.
- **Docker-контейнеризация:** Готовый `Dockerfile` для сборки и запуска приложения в изолированном окружении.
- **CI/CD с Gitea Actions:** Автоматическая сборка и публикация Docker-образа в Gitea Registry при пуше в `main`.
- **Два варианта интерфейса:** Базовая версия и современная версия с Tabler UI.
- **Современный интерфейс:** Полностью интегрированный Tabler UI с официальными компонентами.
## 🛠️ Технологический стек
| Область | Технология |
|--------------|-----------------------------------------------------------------------------------------------------------|
| **Фронтенд** | [**React**](https://reactjs.org/) + [**Vite**](https://vitejs.dev/) |
| | [**React-Bootstrap**](https://react-bootstrap.github.io/) (UI-компоненты) |
| | [**Tabler Icons**](https://tabler-icons.io/) (иконки для Tabler версии) |
| | [**@tabler/core**](https://tabler.io/) (UI-компоненты для Tabler версии) |
| | [**Tabler Icons**](https://tabler-icons.io/) (иконки) |
| | [**Axios**](https://axios-http.com/) (HTTP-клиент) |
| **Бэкенд** | [**Node.js**](https://nodejs.org/) + [**Express**](https://expressjs.com/) |
| | [**AWS SDK for JS**](https://aws.amazon.com/sdk-for-javascript/) (для работы с Yandex Cloud S3) |
@@ -56,7 +56,7 @@ graph TD
### Предварительные требования
- [Node.js](https://nodejs.org/) (v18.x или выше)
- [Node.js](https://nodejs.org/) (v20.x или выше)
- [npm](https://www.npmjs.com/) или [yarn](https://yarnpkg.com/)
- Доступ к бакету Yandex Cloud S3 и сервисный аккаунт с правами на чтение и запись.