diff --git a/Dockerfile b/Dockerfile index 26edc237..893826b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ MAINTAINER tgic RUN apt-get update && apt-get install -y libpam0g-dev libpam-google-authenticator +RUN ln -sf /usr/include/security/_pam_types.h /usr/include/security/pam_types.h + RUN go get -d -tags pam github.com/tg123/sshpiper/sshpiperd RUN go install -ldflags "$(/go/src/github.com/tg123/sshpiper/sshpiperd/ldflags.sh)" -tags pam github.com/tg123/sshpiper/sshpiperd diff --git a/sshpiperd/ldflags.sh b/sshpiperd/ldflags.sh index ffd681cc..3a46cd48 100755 --- a/sshpiperd/ldflags.sh +++ b/sshpiperd/ldflags.sh @@ -5,4 +5,4 @@ cd $GOPATH/src/github.com/tg123/sshpiper githash=`git log --pretty=format:%h,%ad --name-only --date=short . | head -n 1` ver=`cat ver` -echo "-X main.version $ver -X main.githash $githash" +echo "-X main.version=$ver -X main.githash=$githash"