diff --git a/yao-scheduler/dev/Dockerfile b/yao-scheduler/dev/Dockerfile index ee2c3ac..9a49389 100644 --- a/yao-scheduler/dev/Dockerfile +++ b/yao-scheduler/dev/Dockerfile @@ -21,4 +21,6 @@ ADD conf/config.json /etc/yao/ WORKDIR /root/yao-scheduler/ -CMD go run src/* +ADD bootstrap.sh /etc/ + +CMD ["/etc/bootstrap.sh"] diff --git a/yao-scheduler/dev/bootstrap.sh b/yao-scheduler/dev/bootstrap.sh new file mode 100755 index 0000000..cafe876 --- /dev/null +++ b/yao-scheduler/dev/bootstrap.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +cd /root/yao-scheduler/src && go run .