Skip to content

Commit

Permalink
Update Dockerfile.lotus
Browse files Browse the repository at this point in the history
fix docker can't find gpus
  • Loading branch information
Kayuii authored and ZenGround0 committed Mar 16, 2022
1 parent 9f6f94b commit 159da73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.lotus
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ COPY --from=builder /usr/lib/x86_64-linux-gnu/libnuma.so.1 /lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libhwloc.so.5 /lib/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /lib/

RUN useradd -r -u 532 -U fc

RUN useradd -r -u 532 -U fc \
&& mkdir -p /etc/OpenCL/vendors \
&& echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd

###
FROM base AS lotus
Expand Down

0 comments on commit 159da73

Please sign in to comment.