e2e test will not loop infinitely

This commit is contained in:
Boshi Lian 2019-01-06 18:48:27 +00:00
parent 96ddac09ba
commit fc9cd704db
2 changed files with 10 additions and 9 deletions

View file

@ -3,8 +3,6 @@ LABEL maintainer="Boshi Lian<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
ADD . /go/src/github.com/tg123/sshpiper/
RUN go install -ldflags "$(/go/src/github.com/tg123/sshpiper/sshpiperd/ldflags.sh)" -tags pam github.com/tg123/sshpiper/sshpiperd
@ -13,4 +11,4 @@ EXPOSE 2222
ADD entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/go/bin/sshpiperd"]
CMD ["/go/bin/sshpiperd", "daemon"]