Update dependencies get
This commit is contained in:
+5
-5
@@ -20,6 +20,9 @@ RUN git clone --depth 1 --branch v${b3d_vs_major}.${b3d_vs_minor} \
|
||||
https://projects.blender.org/blender/blender.git /opt/blender
|
||||
|
||||
# Get dependencies
|
||||
COPY ./scripts/gen_packages_txt.py /opt/blender/build_files/build_environment/gen_packages_txt.py
|
||||
RUN cd /opt/blender/build_files/build_environment && \
|
||||
python gen_packages_txt.py
|
||||
RUN python /opt/blender/build_files/build_environment/install_linux_packages.py
|
||||
RUN cd /opt/blender && make update
|
||||
RUN cd /opt/blender && make -j$(nproc)
|
||||
@@ -29,11 +32,8 @@ RUN cd /opt/blender && make -j$(nproc)
|
||||
## Setup a Multistage optimisation
|
||||
FROM ubuntu:25.04 AS final
|
||||
|
||||
RUN apt-get update && apt-get install -y python3
|
||||
COPY --from=b3dock /opt/blender/build_files/build_environment/install_linux_packages.py /media/install_linux_packages.py
|
||||
RUN python3 /media/install_linux_packages.py && \
|
||||
rm /media/install_linux_packages.py && \
|
||||
apt --purge remove python3
|
||||
COPY --from=b3dock /opt/blender/build_files/build_environment/packages.txt /tmp/packages.txt
|
||||
RUN apt-get update && xargs -a /tmp/packages.txt apt-get install -y
|
||||
|
||||
RUN useradd -m -s /bin/bash bld
|
||||
|
||||
|
||||
Reference in New Issue
Block a user