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

View File

@ -31,7 +31,7 @@ COPY scripts/ ./scripts/
RUN find . -name "*.sh" -type f -exec dos2unix {} \; RUN find . -name "*.sh" -type f -exec dos2unix {} \;
# Install all dependencies # 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 # Use rush build to build the specific project
RUN rush build --to @coze-studio/app RUN rush build --to @coze-studio/app

View File

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