-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
23 lines (18 loc) · 1.04 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
FROM nvidia/cuda:11.1.1-cudnn8-devel-ubuntu20.04
ENV DEBIAN_FRONTEND noninteractive
# Add cmake repository: https://apt.kitware.com/
RUN apt-get update -y \
&& apt-get install -y apt-transport-https ca-certificates gnupg software-properties-common wget \
&& wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null \
&& apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
# Install other dependencies
RUN apt-get update -y && apt-get install -y build-essential git libomp-dev git cmake python3 python3-pip libboost1.71-all-dev
RUN pip3 install tensorflow-gpu==2.4 numpy==1.19.2
RUN apt-get autoclean && apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
# Install semantic-meshes
RUN git clone https://github.com/fferflo/semantic-meshes
RUN mkdir /semantic-meshes/build
WORKDIR /semantic-meshes/build
RUN cmake -DCLASSES_NUMS=19 -DBUILD_PYTHON_INTERFACE=ON ..
RUN make && make install
RUN pip3 install ./python