Add command hook.
This commit is contained in:
parent
9efef52563
commit
5c44c19060
2 changed files with 8 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk update && apk upgrade \
|
||||
&& apk add \
|
||||
RUN apk add \
|
||||
curl \
|
||||
certbot \
|
||||
openssl
|
||||
|
|
|
@ -11,3 +11,7 @@ certbot certonly --manual --preferred-challenges dns-01 --keep \
|
|||
--agree-tos --no-eff-email --manual-public-ip-logging-ok \
|
||||
--manual-auth-hook=certbot-auth --manual-cleanup-hook=certbot-cleanup \
|
||||
"$@"
|
||||
|
||||
if [ -n "$COMMAND" ]; then
|
||||
/usr/bin/env sh -c "$COMMAND"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue