diff options
author | maride <maride@darknebu.la> | 2019-02-12 16:45:14 +0100 |
---|---|---|
committer | maride <maride@darknebu.la> | 2019-02-12 16:45:14 +0100 |
commit | a130a27a20b043e71bd9fecc566405eb7ad260e9 (patch) | |
tree | 9c672af227057f288c6cee593d88f2ab9e51de1f /Dockerfile |
Init
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..416da85 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM golang:1.10-alpine + +# Setup +COPY main.go . + +# Install libs +RUN apk add git +RUN go get github.com/gliderlabs/ssh + +# Build +RUN go build -o ssh-grab-passwords + +# Drop privs +RUN adduser -u 1337 -D jail +RUN chmod 000 /home/jail + +EXPOSE 2222 + +CMD su -c ./ssh-grab-passwords jail |