feat(docker): streamline frontend build process and update Docker configuration

- Added a new script `build_frontend_dist.sh` to handle the building of frontend static assets.
- Updated `docker-compose.yml` to include a note about running the build script before building the frontend service.
- Modified the GitHub Actions workflow to integrate the new build script for frontend assets.
- Adjusted the Dockerfile to copy built assets directly from the `dist` directory.
- Refined the `.dockerignore` to exclude unnecessary files while keeping the `dist` directory.
This commit is contained in:
wizardchen
2026-06-10 16:02:39 +08:00
committed by lyingbug
parent fc98f000d8
commit 1c31d649a7
7 changed files with 56 additions and 57 deletions
+1
View File
@@ -118,6 +118,7 @@ docker-build-docreader:
# Build frontend Docker image
docker-build-frontend:
./scripts/build_frontend_dist.sh
docker build --platform $(PLATFORM) -f frontend/Dockerfile -t wechatopenai/weknora-ui:latest frontend/
# Build all Docker images