-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (19 loc) · 858 Bytes
/
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
27
28
29
30
31
32
33
34
35
36
FROM nvidia/cuda:11.3.1-devel-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y install python3.10 python3-pip git wget libgoogle-glog-dev gcc libssl-dev python3-setuptools
WORKDIR /cmake
RUN wget https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5.tar.gz
RUN tar -xvf cmake-3.22.5.tar.gz
WORKDIR /cmake/cmake-3.22.5
RUN ./bootstrap && make -j16 && make install
WORKDIR /torch-sputnik
COPY . .
RUN pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
RUN git submodule update --init --recursive
WORKDIR /torch-sputnik/third_party/sputnik
RUN mkdir build
WORKDIR /torch-sputnik/third_party/sputnik/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DCUDA_ARCHS="80" && make -j16 && make install
WORKDIR /torch-sputnik
RUN python3 setup.py install