From ea90ea8eb1062c48dbb6a458ff57083aa9f4bb0e Mon Sep 17 00:00:00 2001 From: xvzc Date: Fri, 5 Aug 2022 01:29:25 +0900 Subject: [PATCH] fix: Fix the problem not being able to run the binaries --- Dockerfile.build | 2 +- build | 4 ++-- make-releases.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile.build b/Dockerfile.build index c33f8ee..fb8e583 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -1,3 +1,3 @@ -FROM golang:1.16-alpine +FROM golang:1.17-alpine WORKDIR /app diff --git a/build b/build index 652d36d..6478d36 100755 --- a/build +++ b/build @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh docker build ./ --file ./Dockerfile.build --tag spoof-dpi:latest && \ docker run --rm \ - -v $(pwd)/:/app spoof-dpi:latest \ + -v $(pwd):/app spoof-dpi:latest \ sh make-releases.sh diff --git a/make-releases.sh b/make-releases.sh index 9ebc3c3..de620e1 100644 --- a/make-releases.sh +++ b/make-releases.sh @@ -1,5 +1,5 @@ #!/bin/bash -GOOS=darwin GOARCH=amd64 go build -o . github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-osx.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi +GOOS=darwin GOARCH=amd64 go build -ldflags='-w -s' github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-osx.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi -GOOS=linux GOARCH=amd64 go build -o . github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi +GOOS=linux GOARCH=amd64 go build -ldflags='-w -s' github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi