2017-01-12 07:01:29 -05:00
|
|
|
FROM python:2-alpine
|
2015-03-20 16:29:26 -04:00
|
|
|
|
2017-03-03 15:00:21 -05:00
|
|
|
ENTRYPOINT [ "certbot" ]
|
2017-01-12 07:01:29 -05:00
|
|
|
EXPOSE 80 443
|
2015-05-05 04:26:23 -04:00
|
|
|
VOLUME /etc/letsencrypt /var/lib/letsencrypt
|
2016-04-14 13:20:23 -04:00
|
|
|
WORKDIR /opt/certbot
|
2017-03-03 15:00:21 -05:00
|
|
|
|
2017-03-03 15:13:07 -05:00
|
|
|
COPY CHANGES.rst README.rst setup.py src/
|
|
|
|
|
COPY acme src/acme
|
|
|
|
|
COPY certbot src/certbot
|
2017-01-12 07:01:29 -05:00
|
|
|
|
|
|
|
|
RUN apk add --no-cache --virtual .certbot-deps \
|
|
|
|
|
libffi \
|
|
|
|
|
libssl1.0 \
|
|
|
|
|
ca-certificates \
|
|
|
|
|
binutils
|
|
|
|
|
RUN apk add --no-cache --virtual .build-deps \
|
|
|
|
|
gcc \
|
|
|
|
|
linux-headers \
|
|
|
|
|
openssl-dev \
|
|
|
|
|
musl-dev \
|
|
|
|
|
libffi-dev \
|
|
|
|
|
&& pip install --no-cache-dir \
|
|
|
|
|
--editable /opt/certbot/src/acme \
|
|
|
|
|
--editable /opt/certbot/src \
|
|
|
|
|
&& apk del .build-deps
|