feat: apt clean

This commit is contained in:
2024-09-10 14:19:34 -07:00
parent 2eddbb0557
commit 476aa7391c
3 changed files with 10 additions and 14 deletions
+4 -4
View File
@@ -6,8 +6,8 @@ ARG HIP_ARCH="gfx803;gfx900"
ARG BLENDER_BRANCH="v3.6.15"
ARG DEBIAN_FRONTEND="noninteractive"
RUN sudo apt update && \
sudo apt install -y python3 git git-lfs
RUN sudo apt-get update && \
sudo apt-get install -y python3 git git-lfs
WORKDIR /home/rocm
RUN git clone --depth 1 https://projects.blender.org/blender/blender.git -b ${BLENDER_BRANCH} && \
@@ -17,7 +17,7 @@ WORKDIR /home/rocm/blender
RUN ./build_files/build_environment/install_linux_packages.py
RUN ./build_files/utils/make_update.py --use-linux-libraries
RUN sudo apt clean && sudo rm -rf /var/lib/apt/lists/*
RUN sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*
# > Ref: https://github.com/xuhuisheng/rocm-gfx803/blob/master/blender.md
RUN sed -i 's/__noinline__/__inline__/g' intern/cycles/kernel/device/hip/compat.h
@@ -31,6 +31,6 @@ RUN cmake \
RUN make -j$(nproc)
RUN cpack -G TXZ
RUN cp $(ls -l blender*.tar.xz | cut -d' ' -f9 | tr -d '\n') /home/rocm/blender.tar.xz
RUN cp $(ls -l blender*.tar.xz | awk '{ print $9 }' | tail -n1 | tr -d '\n') /home/rocm/blender.tar.xz
CMD ["bash", "-l"]