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

# Drop privs
RUN adduser -u 1337 -D jail
RUN chmod 000 /home/jail

EXPOSE 2222

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