forked from YuliangXiu/CLOTH3D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.gpu
More file actions
30 lines (23 loc) · 880 Bytes
/
Dockerfile.gpu
File metadata and controls
30 lines (23 loc) · 880 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
FROM nytimes/blender:2.82-gpu-ubuntu18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
python3.6 \
python3.6-dev \
python3-pip \
cmake \
libgmp-dev \
ffmpeg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install blender's Python dependencies (different from apt-installed Python 3.6)
RUN /bin/2.82/python/bin/pip3 install scipy
WORKDIR /root
COPY . .
# Install Python 3.6 dependencies, except for PyMesh
RUN pip3 install -r requirements.txt
# PyMesh's latest wheel is only available for python 3.6
RUN wget https://github.com/PyMesh/PyMesh/releases/download/v0.2.1/pymesh2-0.2.1-cp36-cp36m-linux_x86_64.whl
RUN pip3 install pymesh2-0.2.1-cp36-cp36m-linux_x86_64.whl
RUN pip3 install jupyter
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"]