From 4d8c82abd97df83d3095c1be3824f16093b4fd23 Mon Sep 17 00:00:00 2001 From: donniean Date: Thu, 20 Feb 2025 14:32:05 +0800 Subject: [PATCH] chore(docker): add Dockerfile and scripts for IPQuality service Signed-off-by: donniean --- docker/IPQuality/Dockerfile | 5 +++++ package.json | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 docker/IPQuality/Dockerfile diff --git a/docker/IPQuality/Dockerfile b/docker/IPQuality/Dockerfile new file mode 100644 index 0000000..20862a8 --- /dev/null +++ b/docker/IPQuality/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:latest + +RUN apk update && apk add bash curl + +CMD bash <(curl -Ls IP.Check.Place) diff --git a/package.json b/package.json index d08247d..46807b4 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,8 @@ "type": "module", "scripts": { "commit": "cz", + "docker:ip-quality:build": "docker build --tag ip-quality ./docker/IPQuality", + "docker:ip-quality:run": "docker run --name IPQuality -it --rm ip-quality", "preinstall": "npx only-allow npm", "lint-all": "concurrently --group --timings --prefix-colors=auto \"npm:lint:*(!:fix)\"", "lint-all:fix": "concurrently --max-processes=1 --group --timings --prefix-colors=auto \"npm:lint:*:fix\"",