Update ldcache to include libcuda.so during docker build

This commit is contained in:
Blair Johnson 2023-12-19 01:51:10 -05:00 committed by GitHub
parent d077150eb7
commit c4c799137f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,5 +240,9 @@ ENTRYPOINT ["./entrypoint.sh"]
# Final image # Final image
FROM base FROM base
# Update ldcache so that triton can find libcuda.so
RUN echo "/usr/local/cuda-12.1/compat" >> /etc/ld.so.conf.d/nvidia.conf && \
echo "/usr/local/cuda-12.1/lib64" >> /etc/ld.so.conf.d/nvidia.conf && ldconfig
ENTRYPOINT ["text-generation-launcher"] ENTRYPOINT ["text-generation-launcher"]
CMD ["--json-output"] CMD ["--json-output"]