add CHALLENGER env support and google-authenticator
This commit is contained in:
parent
d2c05aed8c
commit
29a63b0c65
1 changed files with 5 additions and 3 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
MAINTAINER tgic <farmer1992@gmail.com>
|
MAINTAINER tgic <farmer1992@gmail.com>
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y libpam0g-dev libpam-google-authenticator
|
||||||
|
|
||||||
RUN go get github.com/tg123/sshpiper/sshpiperd
|
RUN go get -tags pam github.com/tg123/sshpiper/sshpiperd
|
||||||
RUN go install github.com/tg123/sshpiper/sshpiperd
|
RUN go install -tags pam github.com/tg123/sshpiper/sshpiperd
|
||||||
|
|
||||||
EXPOSE 2222
|
EXPOSE 2222
|
||||||
CMD ["/go/bin/sshpiperd"]
|
|
||||||
|
CMD ["sh", "-c", "/go/bin/sshpiperd -c=${CHALLENGER}"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue