about summary refs log tree commit diff
path: root/Dockerfile
blob: c0f95076526bcd3f14728294bf4be5a4bc5db32c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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

EXPOSE 2222

CMD su -c ./ssh-grab-passwords jail