From 0e17abd1f7c4f2839e274af8c43ca331ce47737b Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 7 Aug 2023 18:41:32 +0200 Subject: [PATCH] wtfismyip script added (#3) Signed-off-by: Roger Sikorski Reviewed-on: https://gitea.sikorski.cloud/RogerSik/docker-devops-helper/pulls/3 --- Dockerfile | 4 +++- bin/wtfismyip | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 bin/wtfismyip diff --git a/Dockerfile b/Dockerfile index a905e2d..c26cac5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,6 @@ FROM alpine:latest RUN apk update && \ - apk add --no-cache nano mc micro rsync ncdu git curl \ No newline at end of file + apk add --no-cache nano mc micro rsync ncdu git curl + +ADD ./bin/ /usr/local/bin diff --git a/bin/wtfismyip b/bin/wtfismyip new file mode 100644 index 0000000..a0df022 --- /dev/null +++ b/bin/wtfismyip @@ -0,0 +1,3 @@ +#!/bin/sh +curl https://ipv4.wtfismyip.com/text +curl https://ipv6.wtfismyip.com/text