Compare commits
2 Commits
6565553231
...
c906e9e073
| Author | SHA1 | Date | |
|---|---|---|---|
| c906e9e073 | |||
| b7f58971fe |
@ -30,7 +30,11 @@ for service in "${SERVICES[@]}"; do
|
||||
|
||||
# 构建Docker镜像
|
||||
echo "正在构建镜像: $IMAGE_NAME"
|
||||
docker build -t $IMAGE_NAME $SERVICE_DIR
|
||||
if [ "$service" = "frontend" ]; then
|
||||
docker build --build-arg CACHEBUST=$(date +%s) -t $IMAGE_NAME $SERVICE_DIR
|
||||
else
|
||||
docker build -t $IMAGE_NAME $SERVICE_DIR
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "镜像构建失败"
|
||||
exit 1
|
||||
|
||||
@ -108,6 +108,7 @@ services:
|
||||
|
||||
frontend:
|
||||
image: crpi-amr0dt5e5pywqwaf.cn-hangzhou.personal.cr.aliyuncs.com/testrrr/frontend:latest
|
||||
pull_policy: always
|
||||
container_name: ari-frontend
|
||||
restart: always
|
||||
depends_on:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user