contrib: remove downloaded *.deb files from OCI container (#2697)

`apt-get clean` clears out the local repository of retrieved package files.
It removes everything but the lock file from /var/cache/apt/archives/ and
/var/cache/apt/archives/partial/.

Co-authored-by: Vieno Hakkerinen <vieno@chemnitz.freifunk.net>
This commit is contained in:
txt-file 2022-11-07 21:25:31 +01:00 committed by GitHub
parent b11d983bbc
commit 200e302a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ecdsautils \ ecdsautils \
lua-check \ lua-check \
shellcheck \ shellcheck \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN useradd -d /gluon gluon RUN useradd -d /gluon gluon