Remove any leftover apt caches

This commit is contained in:
James Rowe 2020-04-24 21:52:57 -06:00
parent 4bf0830796
commit affcece6a6
3 changed files with 9 additions and 0 deletions

View file

@ -3,3 +3,6 @@ MAINTAINER yuzu
RUN useradd -m -s /bin/bash yuzu RUN useradd -m -s /bin/bash yuzu
RUN apt-get update && apt-get -y full-upgrade RUN apt-get update && apt-get -y full-upgrade
RUN apt-get install -y git clang-format-6.0 RUN apt-get install -y git clang-format-6.0
# cleanup all extra information that apt may be caching to save storage space
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/

View file

@ -15,3 +15,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
ccache \ ccache \
cmake \ cmake \
ninja-build ninja-build
# cleanup all extra information that apt may be caching to save storage space
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/

View file

@ -2,3 +2,6 @@ FROM alpine
RUN adduser -u 1000 -D -s /bin/bash yuzu RUN adduser -u 1000 -D -s /bin/bash yuzu
RUN apk update && apk add build-base cmake python3-dev qt5-qttools-dev qt5-qtmultimedia-dev RUN apk update && apk add build-base cmake python3-dev qt5-qttools-dev qt5-qtmultimedia-dev
RUN pip3 install transifex-client RUN pip3 install transifex-client
# cleanup all extra information that apt may be caching to save storage space
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/