diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2a2f07eafc..ffad183a18 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 @@ -31,6 +31,8 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + install: true - name: Login to Docker Hub uses: docker/login-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b063bd31a..56f436e326 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,7 +73,7 @@ jobs: export CC=s390x-linux-gnu-gcc fi - go build -o xui-release -v main.go + go build -ldflags "-w -s" -o xui-release -v main.go mkdir x-ui cp xui-release x-ui/ diff --git a/Dockerfile b/Dockerfile index a51a011be7..a89f8d2f72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN apk --no-cache --update add build-base gcc wget unzip COPY . . ENV CGO_ENABLED=1 ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE" -RUN go build -o build/x-ui main.go +RUN go build -ldflags "-w -s" -o build/x-ui main.go RUN ./DockerInitFiles.sh "$TARGETARCH" FROM alpine diff --git a/config/version b/config/version index 8b315b3fed..5af131d650 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -1.8.8 \ No newline at end of file +1.8.9 \ No newline at end of file