From 76359ecbb81f2431fdf685e56b54179957f102b2 Mon Sep 17 00:00:00 2001 From: Nils Date: Sat, 29 May 2021 20:26:21 +0200 Subject: [PATCH] changed startup and daemonized tmux --- Dockerfile | 4 +++- run.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ba3fea..49035d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM debian:sid RUN apt-get update -RUN apt-get install -y curl jq netdiscover +RUN apt-get install -y curl jq netdiscover tmux RUN curl -s https://api.github.com/repos/yudai/gotty/releases/latest | jq -r '.assets[].browser_download_url' | grep "gotty_linux_amd64.tar.gz" | xargs curl -L -o gotty_linux_amd64.tar.gz RUN tar xvfz gotty_linux_amd64.tar.gz +ENV TERM=xterm COPY run.sh ./run.sh RUN chmod +x ./run.sh +RUN tmux new-session -d -A -s netdiscover netdiscover ENTRYPOINT ["/run.sh"] diff --git a/run.sh b/run.sh index 3f10441..8690954 100644 --- a/run.sh +++ b/run.sh @@ -9,4 +9,5 @@ fi if [[ -z "$title" ]];then title=netdiscover-docker fi -./gotty -p "$port" $creds --title-format "$title" netdiscover + +./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover