Skip to content
afiram edited this page Nov 6, 2016 · 7 revisions

Welcome to the dockerfiles wiki!

Clean up when build

# alpine build
RUN apk add --no-cache --virtual .build-deps \
     # add pkg  \
    && apk del .build-deps \
    && rm -rf /var/cache/apk/*
# apt
 RUN apt-get install -y curl
 # add pkg
 RUN apt-get remove -y curl
 RUN rm -rf /var/lib/apt/lists/*
Clone this wiki locally