feat: add container deploy path (Containerfile, self-provisioning entrypoint, Forgejo registry push)
This commit is contained in:
parent
fd847d035f
commit
50e5e444bc
5 changed files with 100 additions and 3 deletions
12
docker-entrypoint.sh
Normal file
12
docker-entrypoint.sh
Normal 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 "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue