remove pip after use

This commit is contained in:
Daniel Wolf 2018-12-28 15:58:48 -05:00
parent 65df3da5e1
commit 61b2297509
1 changed files with 5 additions and 3 deletions

View File

@ -3,14 +3,13 @@ LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
RUN echo "====== INSTALL PACKAGES ======" \ RUN echo "====== INSTALL PACKAGES ======" \
&& apk --update upgrade \ && apk --update upgrade \
&& apk add certbot geoip libgd libxslt pcre py2-pip \ && apk add certbot geoip libgd libxslt pcre \
&& pip install zope.component \
\ \
&& echo "====== CONFIGURE SYSTEM ======" \ && echo "====== CONFIGURE SYSTEM ======" \
&& mkdir -p /var/cache/nginx \ && mkdir -p /var/cache/nginx \
\ \
&& echo "====== INSTALL BUILD TOOLS ======" \ && echo "====== INSTALL BUILD TOOLS ======" \
&& apk add --virtual .build-nginx build-base gd-dev geoip-dev git libatomic_ops-dev libressl-dev libxml2-dev libxslt-dev linux-headers pcre-dev zlib-dev \ && apk add --virtual .build-nginx build-base gd-dev geoip-dev git libatomic_ops-dev libressl-dev libxml2-dev libxslt-dev linux-headers pcre-dev py2-pip zlib-dev \
\ \
&& echo "====== COMPILE NGINX ======" \ && echo "====== COMPILE NGINX ======" \
&& cd /usr/src \ && cd /usr/src \
@ -69,6 +68,9 @@ RUN echo "====== INSTALL PACKAGES ======" \
&& strip /usr/sbin/nginx \ && strip /usr/sbin/nginx \
&& strip /usr/lib/nginx/modules/*.so \ && strip /usr/lib/nginx/modules/*.so \
\ \
&& echo "====== INSTALL ZOPE ======" \
&& pip install zope.component \
\
&& echo "====== CLEANUP ======" \ && echo "====== CLEANUP ======" \
&& cd /usr/src \ && cd /usr/src \
&& apk del --purge .build-nginx \ && apk del --purge .build-nginx \