diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-07-08 12:50:33 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-07-08 12:50:37 +0200 |
| commit | 98547be034d9f46c48f01e7d8633aa0b666332b1 (patch) | |
| tree | adefb84196c1e4993a40c9d9dc751814b9114f02 /service | |
| parent | 19d9a38484f1fcd9a05909186531ce401dcc94bb (diff) | |
| download | enowars5-service-stldoctor-98547be034d9f46c48f01e7d8633aa0b666332b1.tar.gz enowars5-service-stldoctor-98547be034d9f46c48f01e7d8633aa0b666332b1.zip | |
make ncat invocation easier to understand and fix listen port
Diffstat (limited to 'service')
| -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 |
