2017-01-06 02:31:45 +01:00
|
|
|
FROM alpine:latest
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2016-05-23 03:25:36 +02:00
|
|
|
|
2017-01-06 02:31:45 +01:00
|
|
|
RUN apk --no-cache add \
|
2017-02-23 20:47:32 +01:00
|
|
|
bash \
|
2017-01-06 02:31:45 +01:00
|
|
|
python \
|
|
|
|
py-cffi \
|
|
|
|
py-configargparse \
|
|
|
|
py-configobj \
|
|
|
|
py-cryptography \
|
|
|
|
py-dialog \
|
|
|
|
py-enum34 \
|
|
|
|
py-idna \
|
|
|
|
py-ipaddress \
|
|
|
|
py-mock \
|
|
|
|
py-openssl \
|
|
|
|
py-parsedatetime \
|
2017-01-11 01:14:50 +01:00
|
|
|
py2-pip \
|
2017-01-06 02:31:45 +01:00
|
|
|
py-requests \
|
|
|
|
py-rfc3339 \
|
|
|
|
py-setuptools \
|
|
|
|
py-six \
|
|
|
|
py-tz \
|
|
|
|
py-zope-component \
|
|
|
|
py-zope-event \
|
|
|
|
py-zope-interface
|
2016-05-23 03:25:36 +02:00
|
|
|
|
2017-01-06 02:31:45 +01:00
|
|
|
RUN pip install acme
|
2016-05-23 03:25:36 +02:00
|
|
|
|
2018-06-08 19:12:16 +02:00
|
|
|
ENV CERTBOT_VERSION 0.25.0
|
2017-01-06 02:31:45 +01:00
|
|
|
|
|
|
|
RUN buildDeps=' \
|
|
|
|
git \
|
|
|
|
' \
|
|
|
|
set -x \
|
|
|
|
&& apk --no-cache add $buildDeps \
|
|
|
|
&& git clone --depth 1 --branch "v$CERTBOT_VERSION" https://github.com/certbot/certbot /usr/src/certbot \
|
|
|
|
&& cd /usr/src/certbot \
|
|
|
|
&& python2 setup.py build || return 1 \
|
|
|
|
&& python2 setup.py install --prefix=/usr || return 1 \
|
|
|
|
&& rm -rf /usr/src/certbot \
|
|
|
|
&& apk del $buildDeps \
|
|
|
|
&& echo "Build complete."
|
|
|
|
|
|
|
|
ENTRYPOINT [ "certbot" ]
|