Don't install unnecessary packages in Dockerfile

This commit is contained in:
Brad Warren
2017-03-06 19:30:49 -08:00
parent 2f7eb22891
commit b23a259390
-7
View File
@@ -1,6 +1,4 @@
FROM python:2-alpine
MAINTAINER Jakub Warmuz <jakub@warmuz.org>
MAINTAINER William Budington <bill@eff.org>
EXPOSE 80 443
VOLUME /etc/letsencrypt /var/lib/letsencrypt
@@ -9,11 +7,8 @@ ENTRYPOINT [ "certbot" ]
COPY . src
RUN apk add --no-cache --virtual .certbot-deps \
dialog \
augeas-libs \
libffi \
libssl1.0 \
wget \
ca-certificates \
binutils
RUN apk add --no-cache --virtual .build-deps \
@@ -25,6 +20,4 @@ RUN apk add --no-cache --virtual .build-deps \
&& pip install --no-cache-dir \
--editable /opt/certbot/src/acme \
--editable /opt/certbot/src \
--editable /opt/certbot/src/certbot-apache \
--editable /opt/certbot/src/certbot-nginx \
&& apk del .build-deps