mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-11-29 18:28:09 +08:00
优化dockerfile
This commit is contained in:
parent
caf348a38b
commit
a4327735c0
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user