docker logic

This commit is contained in:
John Doe
2025-11-22 15:28:38 -05:00
parent 8a2781d688
commit a9ed4e3716
2 changed files with 4 additions and 5 deletions

View File

@@ -2,13 +2,12 @@ FROM docker.io/getterup/fedora-rocm7.1:latest
# vim: filetype=dockerfile
# Copy built ollama binary and libraries from build output
COPY ollama-build/ollama-build-output/bin/ollama /usr/bin/ollama
COPY ollama-build/ollama-build-output/lib/ollama /usr/lib/ollama
COPY ./ollama-build/ollama-build-output/bin/ollama /usr/bin/ollama
COPY ./ollama-build/ollama-build-output/lib/ollama /usr/lib/ollama
# Set executable permissions
RUN chmod +x /usr/bin/ollama
# ROCm environment variables for runtime
ENV ROCM_PATH=/opt/rocm \
HIP_PATH=/opt/rocm \

View File

@@ -83,8 +83,8 @@ else
print_error "Failed to build Ollama binary"
exit 1
fi
echo -e "${YELLOW}Command: podman build -t ${OLLAMA_IMAGE}:latest -f ${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1${NC}"
if podman build -t "${OLLAMA_IMAGE}:latest" -f "${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1"; then
echo -e "${YELLOW}Command: podman build -t ${OLLAMA_IMAGE}:latest -f ${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1 .${NC}"
if podman build -t "${OLLAMA_IMAGE}:latest" -f "${Dockerfiles_DIR}/Dockerfile.ollama-rocm-7.1" .; then
print_success "Ollama ROCm 7.1 image built successfully"
else
print_error "Failed to build Ollama ROCm 7.1 image"