Remove more package caches from docker images

This commit is contained in:
arminius-smh 2023-10-11 16:30:30 +02:00
parent cef471fafb
commit 2536ddf8be
4 changed files with 6 additions and 4 deletions

View File

@ -15,7 +15,8 @@ RUN yum update -y \
&& yum install -y rpmdevtools git autoconf automake glibc-devel gcc-c++ make \
&& yum install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y \
&& yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1 \
&& yum clean all
&& yum clean all \
&& rm -rf /var/cache/dnf
# Link to build script
RUN ln -sf ${SOURCE_DIR}/deployment/build.centos /build.sh

View File

@ -18,7 +18,7 @@ RUN apt-get update \
&& 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 \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
# Link to build script
RUN ln -sf ${SOURCE_DIR}/deployment/build.debian /build.sh

View File

@ -13,7 +13,8 @@ ENV IS_DOCKER=YES
RUN dnf update -y \
&& dnf install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y \
&& dnf install -y @buildsys-build rpmdevtools git dnf-plugins-core nodejs autoconf automake glibc-devel make --setopt=nodesource-nodejs.module_hotfixes=1 \
&& dnf clean all
&& dnf clean all \
&& rm -rf /var/cache/dnf
# Link to build script
RUN ln -sf ${SOURCE_DIR}/deployment/build.fedora /build.sh

View File

@ -17,7 +17,7 @@ RUN apt-get update \
&& 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 \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
# Link to build script
RUN ln -sf ${SOURCE_DIR}/deployment/build.portable /build.sh