Update the dockerfile to be functional ?

This commit is contained in:
2024-05-09 16:04:14 +02:00
parent e41f332f60
commit 5a16e9de93
+15 -9
View File
@@ -67,23 +67,29 @@ RUN apt-get install -y libopenjp2-7-dev \
RUN git clone --depth 1 --branch ${version} https://projects.blender.org/blender/blender.git /opt/blender-git
# Use the local repo has current directory
WORKDIR /opt/blender-git
#WORKDIR /opt/blender-git
# Compile Blender
RUN sudo build_files/utils/make_update.py --use-linux-libraries
RUN make
RUN cd /opt/blender-git && \
sudo ./build_files/utils/make_update.py --use-linux-libraries
RUN cd /opt/blender-git && \
make
## Setup a Multistage optimisation
FROM ubuntu:22.04
COPY --from=blender /build_linux/bin /opt/blender
COPY --from=blender /opt/build_linux/bin /opt/blender
ARG b3d_vs_major
ENV B3D_ADDON_PATH "$HOME/.config/blender/${b3d_vs_major}/scripts/addons"
#RUN apt-get update && apt-get install -y \
# libxi6 \
# libxxf86vm1 \
RUN apt-get update && apt-get install -y \
libxi6 \
libxxf86vm1 \
libxfixes3 \
libxkbcommon-x11-0 \
libjack0 \
pulseaudio \
libgl1-mesa-glx
# libxrender1 \
# libgl1-mesa-glx
# Working Directory setup
WORKDIR /
WORKDIR /opt/blender