feat: add container deploy path (Containerfile, self-provisioning entrypoint, Forgejo registry push)

This commit is contained in:
randogoth 2026-10-09 12:56:27 +03:00
parent fd847d035f
commit 50e5e444bc
5 changed files with 100 additions and 3 deletions

12
docker-entrypoint.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/sh
# Generates the server key on first run so a bare `docker run` against an
# empty volume works; a key already at BUNSHIN_KEY is left untouched.
set -e
: "${BUNSHIN_KEY:=/data/server.key}"
if [ "$1" = "serve" ] && [ ! -f "$BUNSHIN_KEY" ]; then
bunshin keygen --key "$BUNSHIN_KEY"
fi
exec bunshin "$@"