-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 789 Bytes
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
27
28
29
30
31
32
33
# Use Ubuntu 16.04
FROM ubuntu:16.04
# Get dependencies
RUN apt-get update && \
apt-get install -y \
curl \
tar \
bzip2 \
libglu1 \
libxi6 \
libxrender1
# Blender download URL
ENV BLENDER_URL https://mirror.clarkson.edu/blender/release/Blender2.79/blender-2.79b-linux-glibc219-x86_64.tar.bz2
# Download and unpack blender to its directory
RUN mkdir /usr/local/blender && \
curl -ssL $BLENDER_URL | tar -jxv --strip-components=1 -C /usr/local/blender
# Add assets
ADD 3DSPACE.blend /usr/local/3DSPACE.blend
ADD 3DSPACE.py /usr/local/3DSPACE.py
ADD wrapper.sh /usr/local/wrapper.sh
# Upgrade permissions for wrapper
RUN chmod +x /usr/local/wrapper.sh
# Create output volumes to mount
VOLUME /output
# Entry point for shells script
ENTRYPOINT ["/usr/local/wrapper.sh"]