From 5a16e9de93259f9710263180326f60dba1a98685 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Thu, 9 May 2024 16:04:14 +0200 Subject: [PATCH] Update the dockerfile to be functional ? --- Dockerfile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 27a129a..fd7e002 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 / \ No newline at end of file +WORKDIR /opt/blender \ No newline at end of file