2017-01-06 02:31:45 +01:00
|
|
|
FROM alpine:latest
|
2016-09-20 00:25:05 +02:00
|
|
|
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 \
|
|
|
|
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
|
|
|
|
2017-01-06 02:31:45 +01:00
|
|
|
ENV CERTBOT_VERSION 0.9.3
|
|
|
|
|
|
|
|
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" ]
|