mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Updated base image from python:2-alpine to python:2-alpine3.7. Python:2-alpine internally utilises alpine version 3.4 which end-of-life date is the first of May 2018.
28 lines
656 B
Docker
28 lines
656 B
Docker
FROM python:2-alpine3.7
|
|
|
|
ENTRYPOINT [ "certbot" ]
|
|
EXPOSE 80 443
|
|
VOLUME /etc/letsencrypt /var/lib/letsencrypt
|
|
WORKDIR /opt/certbot
|
|
|
|
COPY CHANGES.rst README.rst setup.py src/
|
|
COPY acme src/acme
|
|
COPY certbot src/certbot
|
|
|
|
RUN apk add --no-cache --virtual .certbot-deps \
|
|
libffi \
|
|
libssl1.0 \
|
|
openssl \
|
|
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
|