Skip to content

Commit 218c180

Browse files
authored
feat(ci): build frontend docker images (#588)
1 parent 117b63f commit 218c180

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docker/docker-compose.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ services:
354354
networks:
355355
- coze-network
356356
ports:
357-
# - '8888:8888'
357+
- '8888'
358358
- '8889:8889'
359359
volumes:
360360
- .env:/app/.env
@@ -373,11 +373,12 @@ services:
373373
condition: service_healthy
374374
command: ['/app/opencoze']
375375

376-
coze-frontend:
377-
build:
378-
context: ..
379-
dockerfile: frontend/Dockerfile
380-
container_name: coze-frontend
376+
coze-web:
377+
# build:
378+
# context: ..
379+
# dockerfile: frontend/Dockerfile
380+
image: opencoze/web:latest
381+
container_name: coze-web
381382
restart: always
382383
ports:
383384
- "8888:80"

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ COPY scripts/ ./scripts/
3131
RUN find . -name "*.sh" -type f -exec dos2unix {} \;
3232

3333
# Install all dependencies
34-
RUN rush install
34+
RUN chmod +x scripts/hooks/post-rush-install.sh && rm -rf /app/common/temp && rush install
3535

3636
# Use rush build to build the specific project
3737
RUN rush build --to @coze-studio/app

frontend/config/ts-config/tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"target": "es2018"
3030
},
3131
"watchOptions": {
32-
"fallbackPolling": "dynamicPriorityPolling",
32+
"fallbackPolling": "dynamicpriority",
3333
"synchronousWatchDirectory": false,
3434
"watchDirectory": "useFsEvents",
3535
"watchFile": "useFsEventsOnParentDirectory",

0 commit comments

Comments
 (0)