Skip to content

Commit ffab3c8

Browse files
committed
Add dnspython for certbot
Fixes #168
1 parent 6b03ce5 commit ffab3c8

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

docker/certbot/latest/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@ VOLUME /etc/letsencrypt
1414
VOLUME /var/www
1515

1616
RUN /usr/local/bin/apk-install \
17+
python \
18+
py-crypto \
19+
py2-pip \
20+
py2-dnspython \
1721
certbot \
18-
&& pip install pyRFC3339 configobj ConfigArgParse
22+
&& pip install --upgrade pip \
23+
&& hash -r \
24+
&& pip install pyRFC3339 configobj ConfigArgParse \
25+
&& /usr/local/bin/docker-image-cleanup

template/Dockerfile/images/certbot.jinja2

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% import 'Dockerfile/docker.jinja2' as docker %}
12
{% import 'Dockerfile/provision.jinja2' as provision %}
23

34
{% macro env() -%}
@@ -7,6 +8,13 @@ ENV CERTBOT_DOMAIN ""
78

89
{% macro alpine() -%}
910
RUN /usr/local/bin/apk-install \
11+
python \
12+
py-crypto \
13+
py2-pip \
14+
py2-dnspython \
1015
certbot \
11-
&& pip install pyRFC3339 configobj ConfigArgParse
16+
&& pip install --upgrade pip \
17+
&& hash -r \
18+
&& pip install pyRFC3339 configobj ConfigArgParse \
19+
{{ docker.cleanup() }}
1220
{%- endmacro %}

0 commit comments

Comments
 (0)