FROM golang:1.10-alpine WORKDIR /ssh-grab-passwords-map # Setup COPY src/* /ssh-grab-passwords-map/ # Install libs RUN apk add git RUN go get github.com/gliderlabs/ssh && \ go get github.com/gorilla/mux # Build RUN go build -o ssh-grab-passwords ./... # Drop privs RUN adduser -u 1337 -D jail RUN chmod 000 /home/jail USER jail ENTRYPOINT [ "./ssh-grab-passwords" ]