-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
27 lines (20 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:22.04
ENV BLENDER_MIRROR=https://mirror.clarkson.edu/blender/release/Blender3.6
ENV BLENDER_VERSION=3.6.2
# Install and setup blender
RUN apt-get update && \
apt-get install -y \
libxrender1 libxkbcommon-x11-0 libegl-dev xvfb libxi6 \
wget unzip python3-numpy xz-utils && \
rm -rf /var/lib/apt/lists/*
WORKDIR /src/blender
RUN wget ${BLENDER_MIRROR}/blender-${BLENDER_VERSION}-linux-x64.tar.xz && \
tar -xf blender-${BLENDER_VERSION}-linux-x64.tar.xz
ENV PATH="${PATH}:/src/blender/blender-${BLENDER_VERSION}-linux-x64"
# Add our source code
COPY . /src/TraitBlender
WORKDIR /src/TraitBlender
# Install the blender TraitBlender addon
RUN blender --background -E CYCLES --python dockersetup.py
# Setup default command to run a simple example
CMD blender --background -E CYCLES --python /src/TraitBlender/generate_dataset.py -- /src/TraitBlender/Examples/snails/make_snail.py /src/TraitBlender/Examples/snails/tiny_snails.csv '/src/TraitBlender/Examples/snails/traitblender_settings.json'