diff --git a/ollama37/Dockerfile b/ollama37/Dockerfile index 719ffc9..6c616a1 100644 --- a/ollama37/Dockerfile +++ b/ollama37/Dockerfile @@ -14,8 +14,12 @@ FROM rockylinux/rockylinux:8 # Copy only the built binary and any needed assets from the builder stage COPY --from=builder /usr/local/src/ollama37 /usr/local/src/ollama37 +COPY --from=builder /usr/local/bin /usr/local/bin +COPY --from=builder /usr/local/lib64 /usr/local/lib64 # Set environment variables +ENV LD_LIBRARY_PATH="/usr/local/lib64" +ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility ENV NVIDIA_VISIBLE_DEVICES=all ENV OLLAMA_HOST=0.0.0.0:11434