From 0b48f457b4a0b2c9fa7ceb9fc10224baf8c0cbb1 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 29 Jan 2020 23:12:39 +0100 Subject: executing the binary using the jail user --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 456775c..2967b3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,6 @@ RUN go build -o ssh-grab-passwords ./... RUN adduser -u 1337 -D jail RUN chmod 000 /home/jail -EXPOSE 2222 +USER jail -ENTRYPOINT su -c ./ssh-grab-passwords \ No newline at end of file +ENTRYPOINT [ "./ssh-grab-passwords" ] \ No newline at end of file -- cgit 1.4.1