mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
609aceb5b2
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
32 lines
680 B
Docker
32 lines
680 B
Docker
FROM alpine:latest
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
RUN apk --no-cache add \
|
|
bash \
|
|
libffi \
|
|
libressl \
|
|
python3
|
|
|
|
ENV CERTBOT_VERSION 0.38.0
|
|
|
|
RUN buildDeps=' \
|
|
build-base \
|
|
git \
|
|
libffi-dev \
|
|
libressl-dev \
|
|
python3-dev \
|
|
py3-pip \
|
|
' \
|
|
set -x \
|
|
&& apk --no-cache add $buildDeps \
|
|
&& pip3 install acme \
|
|
&& git clone --depth 1 --branch "v$CERTBOT_VERSION" https://github.com/certbot/certbot /usr/src/certbot \
|
|
&& cd /usr/src/certbot \
|
|
&& python3 setup.py build || return 1 \
|
|
&& python3 setup.py install --prefix=/usr || return 1 \
|
|
&& rm -rf /usr/src/certbot \
|
|
&& apk del $buildDeps \
|
|
&& echo "Build complete."
|
|
|
|
ENTRYPOINT [ "certbot" ]
|