From b4a2d23ea48f120e26dbaf93760105832f41a95c Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Tue, 12 Nov 2024 22:40:38 +0100 Subject: [PATCH] feat: add pdsadmin tool into the dockerfile This allows management of the pds server from within the container making it really easy to manage by `exec`ing into the container and running the pdsadmin tool --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 855ccf9..032c5ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,10 @@ RUN pnpm install --production --frozen-lockfile > /dev/null # Uses assets from build stage to reduce build size FROM node:20.11-alpine3.18 -RUN apk add --update dumb-init +# Install required packages and pdsadmin tool +RUN apk add --update dumb-init bash curl openssl jq util-linux && \ + curl --silent --show-error --fail --output "/usr/local/bin/pdsadmin" "https://raw.githubusercontent.com/bluesky-social/pds/main/pdsadmin.sh" && \ + chmod +x /usr/local/bin/pdsadmin # Avoid zombie processes, handle signal forwarding ENTRYPOINT ["dumb-init", "--"]