Container para emitir Certificados Let's Encrypt, com o Dehydrated
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB

FROM library/alpine:3.13
8 years ago
# Credit: @frol for python3 - https://github.com/frol/docker-alpine-python3/blob/master/Dockerfile
# deps - python3 openssl curl sed grep mktemp
# boto3 - AWS SDK for python
RUN apk add --no-cache --virtual .build-deps git build-base libffi-dev openssl-dev cargo \
&& apk add --no-cache --virtual .dehydrated-rundeps python3-dev py-pip bash openssl curl \
&& pip3 install --upgrade pip boto3 dns-lexicon dns-lexicon[route53] dns-lexicon[transip] \
&& rm -r /root/.cache \
8 years ago
&& cd /tmp \
&& git clone https://github.com/lukas2511/dehydrated.git \
&& cd dehydrated \
&& git checkout tags/v0.6.5 \
&& cd .. \
8 years ago
&& chmod a+x dehydrated/dehydrated \
&& mv dehydrated/dehydrated /usr/bin/ \
&& git clone https://github.com/AnalogJ/lexicon.git \
&& cd lexicon \
&& git checkout tags/v3.3.17 \
&& cd .. \
8 years ago
&& rm -rf /tmp/* \
&& apk del .build-deps
8 years ago
COPY config /etc/dehydrated/config
COPY dehydrated-dns.sh /usr/bin/dehydrated-dns
8 years ago
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
8 years ago
HEALTHCHECK --interval=5s --timeout=3s \
CMD ps aux | grep '[d]ehydrated' || exit 1
CMD ["dehydrated","-h"]