You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
570 B

all: build-linux-arm64 build-linux-amd64
build-linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go build -v -a -o privoxy.bin main.go
build-linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -v -a -o privoxy.bin main.go
docker build -t sre/goprivoxy:amd64 .
docker rm -f goprivoxy
docker run --name goprivoxy --restart always --net=host -d sre/goprivoxy:amd64
docker logs -f goprivoxy