Error when running blender on Docker on M1:
ArchError: Could not find 'cpu MHz' in /proc/cpuinfo
Function: Arch_InitTickTimer
File: /home/blender/Developer/build_linux/deps/build/usd/src/external_usd/pxr/base/arch/timing.cpp
Line: 133
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted
Dockerfile:
FROM --platform=linux/amd64 ubuntu
ARG USERNAME=docker_user
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ENV BLENDER_VERSION 2.93
ENV BLENDER_XZ_URL https://mirror.clarkson.edu/blender/release/Blender$BLENDER_VERSION/blender-$BLENDER_VERSION.1-linux-x64.tar.xz
ENV MINICONDA_URL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
ENV PATH /home/$USERNAME/miniconda3/bin:$PATH
# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
#
# [Optional] Add sudo support. Omit if you don't need to install software after connecting.
&& apt-get update \
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME
# ********************************************************
# * Anything else you want to do like clean up goes here *
# ********************************************************
# [Optional] Set the default user. Omit if you want to keep the default as root.
USER $USERNAME
# Install Blender
RUN sudo apt-get update && \
sudo apt-get install -y \
curl \
wget \
libgl1-mesa-dev \
libglu1-mesa \
libxi6 \
libxrender1
RUN sudo mkdir /usr/local/blender && \
sudo wget "$BLENDER_XZ_URL" && \
sudo apt-get update && \
sudo apt-get install xz-utils && \
sudo tar -xf ./blender-$BLENDER_VERSION.1-linux-x64.tar.xz -C /home/$USERNAME/ && \
sudo rm blender*.xz