diff --git a/Dockerfile b/Dockerfile index 20a5e47..5187c8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ COPY . /tun2socks-src RUN apk add --no-cache make git \ && go mod download \ - && make docker \ - && mv ./bin/tun2socks-docker /tun2socks + && make tun2socks \ + && mv ./bin/tun2socks /tun2socks FROM alpine:latest LABEL org.opencontainers.image.source="https://github.com/xjasonlyu/tun2socks" diff --git a/Makefile b/Makefile index 7f578c3..e2521af 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,8 @@ WINDOWS_ARCH_LIST = \ all: linux-amd64 darwin-amd64 windows-amd64 -.PHONY: docker -docker: - $(GO_BUILD) -o $(BINDIR)/$(NAME)-$@ +tun2socks: + $(GO_BUILD) -o $(BINDIR)/$(NAME) darwin-amd64: GOARCH=amd64 GOOS=darwin $(GO_BUILD) -o $(BINDIR)/$(NAME)-$@