13 lines
453 B
Docker
13 lines
453 B
Docker
FROM golang:latest
|
|
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
|
|
|
|
EXPOSE 2222
|
|
|
|
CMD ["/go/bin/sshpiperd"]
|