🖼️ Use ngrok/ngrok image instead of building it from scratch

This commit is contained in:
Jérôme Petazzoni
2023-05-25 16:09:47 +02:00
parent c1f8177f4e
commit 5ee1367e79
2 changed files with 4 additions and 11 deletions

View File

@@ -3,8 +3,8 @@ version: "3"
services:
ngrok-echo:
build: ngrok
command: ngrok http --log=stdout localhost:3000
image: ngrok/ngrok
command: http --log=stdout localhost:3000
ports:
- 3000
@@ -14,8 +14,8 @@ services:
command: npx http-echo-server
ngrok-flask:
build: ngrok
command: ngrok http --log=stdout localhost:5000
image: ngrok/ngrok
command: http --log=stdout localhost:5000
ports:
- 5000

View File

@@ -1,7 +0,0 @@
FROM alpine
RUN apk add curl unzip
RUN curl -O https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
RUN unzip ngrok-stable-linux-amd64
FROM alpine
COPY --from=0 /ngrok /usr/local/bin/ngrok