feat(ci): build frontend docker images (#588)

This commit is contained in:
Ryo 2025-08-05 22:02:37 +08:00 committed by GitHub
parent 117b63f661
commit 218c1806ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 8 deletions

View File

@ -354,7 +354,7 @@ services:
networks:
- coze-network
ports:
# - '8888:8888'
- '8888'
- '8889:8889'
volumes:
- .env:/app/.env
@ -373,11 +373,12 @@ services:
condition: service_healthy
command: ['/app/opencoze']
coze-frontend:
build:
context: ..
dockerfile: frontend/Dockerfile
container_name: coze-frontend
coze-web:
# build:
# context: ..
# dockerfile: frontend/Dockerfile
image: opencoze/web:latest
container_name: coze-web
restart: always
ports:
- "8888:80"

View File

@ -31,7 +31,7 @@ COPY scripts/ ./scripts/
RUN find . -name "*.sh" -type f -exec dos2unix {} \;
# Install all dependencies
RUN rush install
RUN chmod +x scripts/hooks/post-rush-install.sh && rm -rf /app/common/temp && rush install
# Use rush build to build the specific project
RUN rush build --to @coze-studio/app

View File

@ -29,7 +29,7 @@
"target": "es2018"
},
"watchOptions": {
"fallbackPolling": "dynamicPriorityPolling",
"fallbackPolling": "dynamicpriority",
"synchronousWatchDirectory": false,
"watchDirectory": "useFsEvents",
"watchFile": "useFsEventsOnParentDirectory",