优化dockerfile

This commit is contained in:
iioter 2023-11-09 13:48:04 +08:00
parent caf348a38b
commit a4327735c0
3 changed files with 0 additions and 37 deletions

View File

@ -32,8 +32,6 @@ FROM base AS final
WORKDIR /app
COPY drivers /app/drivers/
COPY 3d /app/wwwroot/3d/
COPY IoTGateway/iotgateway.db /app/
COPY IoTGateway/Quickstarts.ReferenceServer.Config.xml /app/
COPY --from=publish /app/publish .
ENV TZ=Asia/Shanghai

View File

@ -1,20 +0,0 @@
#!/bin/bash
echo start
tag="2.0.2"
echo $tag
docker build -t registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:arm-$tag .
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:arm-$tag
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:arm-$tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:arm
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:arm
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest 15261671110/iotgateway:arm-$tag
docker push 15261671110/iotgateway:arm-$tag
docker tag 15261671110/iotgateway:$tag 15261671110/iotgateway:arm
docker push 15261671110/iotgateway:arm

View File

@ -1,15 +0,0 @@
#!/bin/bash
echo start
tag="2.0.2"
echo $tag
docker build -t registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag .
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest 15261671110/iotgateway:$tag
docker push 15261671110/iotgateway:$tag
docker tag 15261671110/iotgateway:$tag 15261671110/iotgateway:latest
docker push 15261671110/iotgateway:latest