feat(ci): build frontend docker images (#588)
This commit is contained in:
parent
117b63f661
commit
218c1806ff
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue