Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit fc00862

Browse files
add additional python symlinks
1 parent 6a874fb commit fc00862

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/guides/python/blender-render.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -633,13 +633,14 @@ RUN --mount=type=cache,target=/var/cache/apt/archives \
633633
add-apt-repository ppa:deadsnakes/ppa && \
634634
apt-get install -y python3.11 && \
635635
ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11 && \
636-
rm -rf /var/lib/apt/lists/*
636+
ln -sf /usr/bin/python3.11 /usr/local/bin/python3 && \
637+
ln -sf /usr/bin/python3.11 /usr/local/bin/python
637638
```
638639

639640
We'll then download blender using the `ADD` command, downloading and extracting the file into the `/app` directory so it can be used by our job application.
640641

641642
```dockerfile title:blender.dockerfile
642-
# !collapse(1:49) collapsed
643+
# !collapse(1:51) collapsed
643644
FROM ghcr.io/astral-sh/uv:python3.11-bookworm AS builder
644645

645646
ARG HANDLER
@@ -688,7 +689,8 @@ RUN --mount=type=cache,target=/var/cache/apt/archives \
688689
add-apt-repository ppa:deadsnakes/ppa && \
689690
apt-get install -y python3.11 && \
690691
ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11 && \
691-
rm -rf /var/lib/apt/lists/*
692+
ln -sf /usr/bin/python3.11 /usr/local/bin/python3 && \
693+
ln -sf /usr/bin/python3.11 /usr/local/bin/python
692694

693695
# Blender variables used for specifying the blender version
694696
ARG BLENDER_OS="linux-x64"
@@ -706,7 +708,7 @@ RUN --mount=type=cache,target=/var/cache/apt/archives \
706708
Finally, we'll make sure we add our code from the base image and set the entrypoint as the python code.
707709

708710
```dockerfile title:blender.dockerfile
709-
# !collapse(1:61) collapsed
711+
# !collapse(1:63) collapsed
710712
FROM ghcr.io/astral-sh/uv:python3.11-bookworm AS builder
711713

712714
ARG HANDLER
@@ -755,7 +757,8 @@ RUN --mount=type=cache,target=/var/cache/apt/archives \
755757
add-apt-repository ppa:deadsnakes/ppa && \
756758
apt-get install -y python3.11 && \
757759
ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11 && \
758-
rm -rf /var/lib/apt/lists/*
760+
ln -sf /usr/bin/python3.11 /usr/local/bin/python3 && \
761+
ln -sf /usr/bin/python3.11 /usr/local/bin/python
759762

760763
# Blender variables used for specifying the blender version
761764
ARG BLENDER_OS="linux-x64"

0 commit comments

Comments
 (0)