feat(ci): build frontend docker images (#588)
This commit is contained in:
parent
117b63f661
commit
218c1806ff
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
"target": "es2018"
|
||||
},
|
||||
"watchOptions": {
|
||||
"fallbackPolling": "dynamicPriorityPolling",
|
||||
"fallbackPolling": "dynamicpriority",
|
||||
"synchronousWatchDirectory": false,
|
||||
"watchDirectory": "useFsEvents",
|
||||
"watchFile": "useFsEventsOnParentDirectory",
|
||||
|
|
|
|||
Loading…
Reference in New Issue