make docker build happy
This commit is contained in:
parent
dd443d8116
commit
e27ae2115c
2 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,8 @@ MAINTAINER tgic <farmer1992@gmail.com>
|
|||
|
||||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue