From 89b90193ec803418002938902c6b86c84e9b023c Mon Sep 17 00:00:00 2001 From: Ghost <31184695+GHOSCHT@users.noreply.github.com> Date: Wed, 28 Apr 2021 16:11:24 +0200 Subject: [PATCH] Add ngrok download --- Dockerfile | 6 ++++-- start.sh | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d810138b..0e24b662 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,10 @@ ADD ./bin /usr/local/bin RUN chmod a+x /usr/local/bin/* # Ngrok tunneling -RUN apk --no-cache add curl -RUN apk --no-cache add jq +RUN apk --no-cache add curl jq unzip +RUN curl -o ngrok-compressed.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip +RUN unzip ngrok-compressed.zip +RUN chmod +x /ngrok COPY start.sh / COPY mailing/* /mailing/ RUN yarn --cwd /mailing diff --git a/start.sh b/start.sh index a7a2974f..0f2622a5 100644 --- a/start.sh +++ b/start.sh @@ -1,6 +1,6 @@ #!/bin/bash -./etc/openvpn/ngrok authtoken $AUTHTOKEN -./etc/openvpn/ngrok tcp 1194 > /dev/null & +./ngrok authtoken $AUTHTOKEN +./ngrok tcp 1194 > /dev/null & sleep 3 export NGROK_URL="$(curl http://localhost:4040/api/tunnels | jq ".tunnels[0].public_url")" echo --------------------