-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
Dockerfile
40 lines (30 loc) · 1 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
FROM nvidia/cuda:12.1.1-devel-ubuntu22.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 \
wget \
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 . .
RUN cd src/python \
&& poetry config virtualenvs.create false \
&& poetry run pip install -U pip \
&& poetry install
ENV PYTHONPATH $PYTHONPATH:/usr/lib/python3.8/site-packages
RUN mkdir build \
&& cd build \
&& cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_GLEW=ON -DBUILD_GLFW=ON -DBUILD_PNG=ON -DBUILD_JSONCPP=ON \
&& make pip-package \
&& pip install lib/python_package/pip_package/*.whl