8369338216
All checks were successful
the build was successful
config generation is now done with jinja2 instead of sed. also added a way to do the dns challenge without fiddling with more than env vars. BREAKING CHANGE: a lot of env vars and volumes changed.
43 lines
988 B
Docker
43 lines
988 B
Docker
FROM docker.jcg.re/base-alpine
|
|
|
|
RUN apk add --no-cache \
|
|
--virtual .build-deps \
|
|
git \
|
|
python3-dev \
|
|
libffi-dev \
|
|
build-base \
|
|
openssl-dev \
|
|
py2-pip \
|
|
&& apk add --no-cache \
|
|
--virtual .runtime-deps \
|
|
openssl \
|
|
curl \
|
|
sed \
|
|
grep \
|
|
bash \
|
|
su-exec \
|
|
libxml2-utils \
|
|
py2-pip \
|
|
python3 \
|
|
&& mkdir /opt \
|
|
&& git clone https://github.com/lukas2511/dehydrated.git /opt/dehydrated \
|
|
&& pip3 install requests[security] \
|
|
&& pip3 install dns-lexicon \
|
|
&& pip2 install j2cli[yaml] \
|
|
&& apk del .build-deps
|
|
|
|
ENV \
|
|
DEHYDRATED_CA="https://acme-staging-v02.api.letsencrypt.org/directory" \
|
|
DEHYDRATED_CHALLENGE="http-01" \
|
|
DEHYDRATED_KEYSIZE="4096" \
|
|
DEHYDRATED_HOOK="" \
|
|
DEHYDRATED_RENEW_DAYS="30" \
|
|
DEHYDRATED_KEY_RENEW="yes" \
|
|
DEHYDRATED_ACCEPT_TERMS="no" \
|
|
DEHYDRATED_EMAIL="user@example.org" \
|
|
DEHYDRATED_GENERATE_CONFIG="yes"
|
|
|
|
ADD root /
|
|
|
|
VOLUME /data
|