Commit 15bbc6ee authored by Michał Woźniak's avatar Michał Woźniak

hook dir exposed via VOLUMES; INSTALL_PACKAGES build arg implemented

parent d29bf7bb
......@@ -5,6 +5,7 @@ MAINTAINER Hubert Dąbrowski <h@dabrow.org>
ENV ACME_STATE_DIR="/data"
ARG VERSION="0.0.67"
# TLS root certs needed for, well, TLS
RUN apk add ca-certificates && update-ca-certificates
ADD https://github.com/hlandau/acme/releases/download/v${VERSION}/acmetool-v${VERSION}-linux_amd64.tar.gz /opt/
......@@ -12,7 +13,19 @@ RUN tar -xf /opt/acmetool-v${VERSION}-linux_amd64.tar.gz -C /opt && \
rm /opt/acmetool-v${VERSION}-linux_amd64.tar.gz && \
mv /opt/acmetool-v${VERSION}-linux_amd64 /opt/acmetool
VOLUME ["/data"]
#
# install additional packages
ARG INSTALL_PACKAGES=""
RUN if [ "$INSTALL_PACKAGES" != "" ]; then \
apk update && \
apk add $INSTALL_PACKAGES \
fi
#
# ACME_STATE_DIR is: /data
# hooks directory is the default: /usr/lib/acme/hooks/
# more on hooks: https://github.com/hlandau/acme/blob/master/_doc/SCHEMA.md#hooks
VOLUME ["/data", "/usr/lib/acme/hooks/"]
ENTRYPOINT ["/opt/acmetool/bin/acmetool"]
CMD ["--help"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment