-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (33 loc) · 1001 Bytes
/
Dockerfile
File metadata and controls
40 lines (33 loc) · 1001 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
29
30
31
32
33
34
35
36
37
38
39
40
# syntax=docker/dockerfile:1.3
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
ENV APPDIR /usr/local/app
WORKDIR ${APPDIR}
COPY . ${APPDIR}/
RUN \
--mount=type=cache,target=/var/cache/apt \
apt-get update && apt-get install -y --no-install-recommends \
zip \
p7zip-full \
git \
python3 \
python3-pip \
python3-psutil \
python3-requests \
pciutils \
ca-certificates \
rsync \
ocl-icd-libopencl1 \
clinfo \
curl && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd && \
echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \
echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf
ENV PATH /usr/local/nvidia/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
RUN \
--mount=type=cache,target=/root/.cache/pip \
pip3 install -r requirements.txt && \
./build.sh
ENTRYPOINT ["python3", "hashtopolis.zip"]