-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathDockerfile
22 lines (17 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# git clone https://github.com/DIYer22/bpycv && cd bpycv && docker build --network=host -t diyer22/bpycv ./ && docker run -v /tmp:/tmp -it diyer22/bpycv
FROM nytimes/blender:3.2-gpu-ubuntu18.04
LABEL Author="Lei Yang <DIYer22@GitHub>"
LABEL Title="bpycv in Docker"
RUN apt-get update
RUN apt install git -y
RUN ${BLENDERPY} -m pip install --no-cache-dir -U pip setuptools wheel
# RUN ${BLENDERPY} -m pip install --no-cache-dir -U ipython
RUN ${BLENDERPY} -m pip install --no-cache-dir bpycv && ${BLENDERPY} -m pip uninstall bpycv -y
RUN ln -s ${BLENDERPY} /usr/bin/python
COPY . /bpycv/
WORKDIR /bpycv
RUN ${BLENDERPY} -m pip install --no-cache-dir -r requirements.txt
RUN ${BLENDERPY} setup.py install
WORKDIR /tmp
# run demo
CMD blender -b -E CYCLES -P /bpycv/example/6d_pose_demo.py && sh /bpycv/example/run_ycb_demo.sh