env GOOS=linux GOARCH=mipsle
go env -w GOPROXY=https://goproxy.cn
apt update
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
npm config get registry
go get github.com/GeertJohan/go.rice
go get github.com/GeertJohan/go.rice/rice
export PATH=$PATH:/GOROOT/bin
git clone --recurse-submodules https://github.com/filebrowser/filebrowser
cd http
go mod init
go mod download
rice embed-go
GOOS=linux GOARCH=mipsle go build -a -o filebrowser -ldflags "-s -w -X github.com/filebrowser/filebrowser/v2/version.CommitSHA=$COMMIT_SHA"
}