@@ -8,7 +8,7 @@ build:
- go env -w GOPROXY=https://goproxy.cn,direct
- go mod tidy
- CGO_ENABLED=0 go build -a -ldflags '-s'
- - tar zcf i2-bill-erp.tar.gz etc hosts entrypoint.sh i2-bill-erp
+ - tar zcf i2-bill-erp.tar.gz etc i2-bill-erp
publish:
docker:
registry: docker.qianqiusoft.com
@@ -4,4 +4,4 @@ ADD i2-bill-erp.tar.gz /app/
VOLUME [ "/app/etc" ]
EXPOSE 8888
WORKDIR /app
-ENTRYPOINT ["sh", "/app/entrypoint.sh"]
+CMD ["/app/i2-bill-api", "-f", "/app/etc/transform.yaml"]
@@ -1,2 +0,0 @@
-cat /app/hosts >> /etc/hosts
-/app/i2-bill-erp -f /app/etc/transform.yaml
@@ -1,5 +1,5 @@
Name: transform.rpc
-ListenOn: i2-bill-erp:8080
+ListenOn: 0.0.0.0:8080
Etcd:
Hosts:
- 47.103.219.158:30019
@@ -1,3 +0,0 @@
-127.0.0.1 localhost
-# skip service check
-127.0.0.1 i2-bill-erp