mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-24 23:36:46 +00:00
🖼️ Use ngrok/ngrok image instead of building it from scratch
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user