-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.gpu
More file actions
28 lines (20 loc) · 849 Bytes
/
Copy pathDockerfile.gpu
File metadata and controls
28 lines (20 loc) · 849 Bytes
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
# GPU development/test container.
#
# Usage (on a machine with NVIDIA Docker + drivers):
# docker build -t dimreduce4gpu:dev -f Dockerfile.gpu .
# docker run --rm -it --gpus all -v "$PWD":/work -w /work dimreduce4gpu:dev \
# bash -lc "cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j && pytest"
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential cmake git file binutils \
python3 python3-pip python3-venv \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade pip
WORKDIR /work
COPY requirements-dev.txt ./requirements-dev.txt
COPY requirements.txt ./requirements.txt
RUN python3 -m pip install -r requirements-dev.txt
COPY . .
RUN python3 -m pip install -e .
CMD ["bash"]