about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-01-29 23:12:39 +0100
committerEmile <hanemile@protonmail.com>2020-01-29 23:12:39 +0100
commit0b48f457b4a0b2c9fa7ceb9fc10224baf8c0cbb1 (patch)
treeb78dd87b06e4333d943fef8788bde9cd06d2f29d /Dockerfile
parent71cd5b136a3aaecd996254831252160ac612bc97 (diff)
executing the binary using the jail user
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
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