forked from neka-nat/cupoch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (33 loc) · 1.16 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM nvidia/cuda:11.7.1-devel-ubuntu20.04
WORKDIR /work/cupoch
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y tzdata
ENV TZ Asia/Tokyo
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
build-essential \
libxinerama-dev \
libxcursor-dev \
libglu1-mesa-dev \
xorg-dev \
cmake \
python3-dev \
python3-setuptools && \
rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH $PATH:/root/.local/bin
COPY src/python src/python
RUN cd src/python \
&& poetry config virtualenvs.create false \
&& poetry run pip install -U pip wheel conan cmake \
&& poetry install
ENV PYTHONPATH $PYTHONPATH:/usr/lib/python3.8/site-packages
RUN conan profile detect
COPY conanfile.py conanfile.py
COPY third_party/conan-recipes third_party/conan-recipes
RUN conan install . --build missing -s compiler.cppstd=17 -c tools.system.package_manager:mode=install
COPY . .
RUN cd build \
&& cmake .. -DCMAKE_BUILD_TYPE=Release \
&& make pip-package \
&& pip install lib/python_package/pip_package/*.whl