|
|
@ -62,14 +62,7 @@ RUN for verb in help \ |
|
|
|
printf -- "%b" "#!/usr/bin/env sh\n/root/.acme.sh/acme.sh --${verb} --config-home /acme.sh \"\$@\"" >/usr/local/bin/--${verb} && chmod +x /usr/local/bin/--${verb} \ |
|
|
|
; done |
|
|
|
|
|
|
|
RUN printf "%b" '#!'"/usr/bin/env sh\n \ |
|
|
|
if [ \"\$1\" = \"daemon\" ]; then \n \ |
|
|
|
trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \n \ |
|
|
|
crond && sleep infinity &\n \ |
|
|
|
wait \n \ |
|
|
|
else \n \ |
|
|
|
exec -- \"\$@\"\n \ |
|
|
|
fi" >/entry.sh && chmod +x /entry.sh |
|
|
|
COPY entry.sh / |
|
|
|
|
|
|
|
VOLUME /acme.sh |
|
|
|
|