diff options
| -rw-r--r-- | service/Dockerfile | 2 | ||||
| -rwxr-xr-x | service/entrypoint.sh | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/service/Dockerfile b/service/Dockerfile index af3b176..9435486 100644 --- a/service/Dockerfile +++ b/service/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu:18.04 -RUN apt update && apt install -y --no-install-recommends ncat gcc make libc6-dev libc6 libc-dev-bin +RUN apt update && apt install -y --no-install-recommends nmap gcc make libc6-dev libc6 libc-dev-bin RUN addgroup --system service RUN adduser --system --ingroup service --uid 1000 service diff --git a/service/entrypoint.sh b/service/entrypoint.sh index d68257e..eef45c1 100755 --- a/service/entrypoint.sh +++ b/service/entrypoint.sh @@ -11,5 +11,6 @@ while [ 1 ]; do sleep 70 done & -CMD="ncat -k -l -p 9090 -m 200 --no-shutdown -w10s -i180s -e /service/build/stldoctor" +CMD="ncat --keep-open --listen -p 9000 --max-conns 200 \ +--no-shutdown --wait 10s --idle-timeout 180s --exec /service/build/stldoctor" su -s /bin/sh -c "$CMD" service |
