🔨 Removes unused files from image

This commit is contained in:
Franck Nijhof 2019-04-18 22:52:30 +02:00
parent a78efb1ce0
commit ce3567cda5
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -23,7 +23,12 @@ RUN \
\ \
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \ && pip3 install --no-cache-dir -r /tmp/requirements.txt \
\ \
&& apk del --purge .build-dependencies && find /usr/local \
\( -type d -a -name test -o -name tests -o -name '__pycache__' \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
\
&& apk del --purge .build-dependencies \
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /