Add command hook.
This commit is contained in:
parent
9efef52563
commit
5c44c19060
2 changed files with 8 additions and 5 deletions
|
@ -1,10 +1,9 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk update && apk upgrade \
|
||||
&& apk add \
|
||||
curl \
|
||||
certbot \
|
||||
openssl
|
||||
RUN apk add \
|
||||
curl \
|
||||
certbot \
|
||||
openssl
|
||||
|
||||
RUN mkdir -p /etc/periodic/12h \
|
||||
&& mkdir -p /etc/periodic/5min
|
||||
|
|
|
@ -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