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 \
|
2019-09-17 02:41:08 +02:00
|
|
|
libffi \
|
|
|
|
libressl \
|
|
|
|
python3
|
2016-05-23 03:25:36 +02:00
|
|
|
|
2019-09-17 02:41:08 +02:00
|
|
|
ENV CERTBOT_VERSION 0.38.0
|
2017-01-06 02:31:45 +01:00
|
|
|
|
|
|
|
RUN buildDeps=' \
|
2019-09-17 02:41:08 +02:00
|
|
|
build-base \
|
2017-01-06 02:31:45 +01:00
|
|
|
git \
|
2019-09-17 02:41:08 +02:00
|
|
|
libffi-dev \
|
|
|
|
libressl-dev \
|
|
|
|
python3-dev \
|
|
|
|
py3-pip \
|
2017-01-06 02:31:45 +01:00
|
|
|
' \
|
|
|
|
set -x \
|
|
|
|
&& apk --no-cache add $buildDeps \
|
2019-09-17 02:41:08 +02:00
|
|
|
&& pip3 install acme \
|
2017-01-06 02:31:45 +01:00
|
|
|
&& git clone --depth 1 --branch "v$CERTBOT_VERSION" https://github.com/certbot/certbot /usr/src/certbot \
|
|
|
|
&& cd /usr/src/certbot \
|
2019-09-17 02:41:08 +02:00
|
|
|
&& python3 setup.py build || return 1 \
|
|
|
|
&& python3 setup.py install --prefix=/usr || return 1 \
|
2017-01-06 02:31:45 +01:00
|
|
|
&& rm -rf /usr/src/certbot \
|
|
|
|
&& apk del $buildDeps \
|
|
|
|
&& echo "Build complete."
|
|
|
|
|
|
|
|
ENTRYPOINT [ "certbot" ]
|