Remove cache from docker images after installing packages

This commit is contained in:
arminius 2023-10-06 03:55:11 +02:00
parent 87ff0e4fda
commit f6946f9898
5 changed files with 10 additions and 6 deletions

View file

@ -17,7 +17,8 @@ RUN apt-get update \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y nodejs
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Link to build script
RUN ln -sf ${SOURCE_DIR}/deployment/build.debian /build.sh