This commit is contained in:
jiangyong 2025-03-08 23:55:53 +08:00
parent ce50880530
commit 9ad6dd49f0
4 changed files with 5 additions and 5 deletions

View File

@ -9,10 +9,10 @@ RUN export GOROOT=/usr/local/go1.21.4 && \
export GOPRIVATE=gitlab.batiao8.com && \ export GOPRIVATE=gitlab.batiao8.com && \
export PATH=$PATH:$GOROOT/bin && \ export PATH=$PATH:$GOROOT/bin && \
go mod tidy && \ go mod tidy && \
go build cmd/worker/enter_worker.go && \ go build cmd/worker/enterprise-api.go && \
go build cmd/server/enter_server.go && \ go build cmd/server/enterprise-worker.go && \
mv enter_server /app/bin && \ mv enterprise-api /app/bin && \
mv enter_worker /app/bin && \ mv enterprise-worker /app/bin && \
cp -r conf /app && \ cp -r conf /app && \
cp start.sh /app && \ cp start.sh /app && \
chmod +x /app/start.sh chmod +x /app/start.sh

View File

@ -4,7 +4,7 @@ ROOT=$(cd `dirname $0`; pwd)
cd $ROOT cd $ROOT
if [ "$BINARY" = "" ];then if [ "$BINARY" = "" ];then
BINARY="enter_server" BINARY="enterprise-api"
fi fi
while [ true ];do while [ true ];do