From 0c4db69e082a576d3855d4b9ba2b50fb3f19ee3a Mon Sep 17 00:00:00 2001 From: Nils Date: Tue, 28 Dec 2021 04:29:37 +0100 Subject: [PATCH] add docker files --- docker/Dockerfile | 6 ++++++ docker/docker-compose.yml | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 docker/Dockerfile create mode 100644 docker/docker-compose.yml diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..896c4d5 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine:latest + +RUN apk update +RUN apk add curl jq +RUN curl -s https://api.github.com/repos/byReqz/probehost2/releases/latest | jq -r '.assets[].browser_download_url' | grep "probehost2" | xargs curl -L -o probehost2 +ENTRYPOINT ["/probehost2"] diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..ab206a0 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,11 @@ +version: '2.3' + +services: + probehost2: + container_name: probehost2 + image: byreqz/probehost2:latest + restart: unless-stopped + ports: + - 1234:8000 + volumes: + - ./probehost2.log:/probehost2.log