Skip to content

Commit 89b9019

Browse files
committed
Add ngrok download
1 parent 59534d1 commit 89b9019

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ ADD ./bin /usr/local/bin
2424
RUN chmod a+x /usr/local/bin/*
2525

2626
# Ngrok tunneling
27-
RUN apk --no-cache add curl
28-
RUN apk --no-cache add jq
27+
RUN apk --no-cache add curl jq unzip
28+
RUN curl -o ngrok-compressed.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
29+
RUN unzip ngrok-compressed.zip
30+
RUN chmod +x /ngrok
2931
COPY start.sh /
3032
COPY mailing/* /mailing/
3133
RUN yarn --cwd /mailing

start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
2-
./etc/openvpn/ngrok authtoken $AUTHTOKEN
3-
./etc/openvpn/ngrok tcp 1194 > /dev/null &
2+
./ngrok authtoken $AUTHTOKEN
3+
./ngrok tcp 1194 > /dev/null &
44
sleep 3
55
export NGROK_URL="$(curl http://localhost:4040/api/tunnels | jq ".tunnels[0].public_url")"
66
echo --------------------

0 commit comments

Comments
 (0)