certbot/Dockerfile
2017-03-06 19:30:49 -08:00

23 lines
559 B
Docker

FROM python:2-alpine
EXPOSE 80 443
VOLUME /etc/letsencrypt /var/lib/letsencrypt
WORKDIR /opt/certbot
ENTRYPOINT [ "certbot" ]
COPY . src
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