diff --git a/docker/Dockerfile b/docker/Dockerfile index d0fc32df..7f8119bb 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -21,7 +21,8 @@ COPY docker/init.sh /tmp/init.sh COPY server/ /server/ COPY web/ui /server/ui -RUN sh /tmp/init.sh +RUN apk add gcc musl-dev bash +RUN bash /tmp/init.sh # anylink diff --git a/docker/init.sh b/docker/init.sh index 8ebc6d04..6f1afbad 100644 --- a/docker/init.sh +++ b/docker/init.sh @@ -15,8 +15,10 @@ uname -a cd /server go mod tidy -go build -o anylink -trimpath \ - -ldflags "-s -w -extldflags '-static' -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$buildDate" + +go build -o anylink -trimpath + +# -ldflags "-s -w -extldflags '-static' -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$buildDate" ls -l /server/