diff --git a/Dockerfile b/Dockerfile index 41dd8c5..7e0a497 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,5 @@ ADD id_rsa id_rsa EXPOSE 2022 -CMD ["-i", "id_rsa", "-vv", "--bind", "\":2022\""] -ENTRYPOINT ["ssh-chat"] +CMD ["/ssh-chat", "-i", "id_rsa", "-vv", "--bind", "\":2022\""] +# ENTRYPOINT ["ssh-chat"] diff --git a/Makefile b/Makefile index 699badf..c7b6640 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ SRCS = %.go all: $(BINARY) $(BINARY): deps **/**/*.go **/*.go *.go - go build -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat + CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags "-X main.buildCommit `git describe --long --tags --dirty --always`" ./cmd/ssh-chat deps: go get ./...