diff --git a/Dockerfile b/Dockerfile index e99d37e..7288cac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:latest +FROM ubuntu:22.04 LABEL com.github.actions.name="rocm-setup" LABEL com.github.actions.description="Setup AMD ROCmâ„¢ Platform for GPUs" @@ -9,25 +9,17 @@ LABEL repository="https://github.com/neoblizz/rocm-setup" LABEL maintainer="Muhammad Awad " # Install dependencies -RUN apt-get update && apt-get -y install wget build-essential git +RUN apt update && apt -y install wget build-essential git cmake # Install ROCm -RUN wget https://repo.radeon.com/amdgpu-install/5.4/ubuntu/jammy/amdgpu-install_5.4.50400-1_all.deb -RUN apt-get -y install ./amdgpu-install_5.4.50400-1_all.deb -RUN DEBIAN_FRONTEND=noninteractive amdgpu-install --accept-eula -y --usecase=rocm,hiplibsdk --no-dkms +RUN wget https://repo.radeon.com/amdgpu-install/6.1.3/ubuntu/jammy/amdgpu-install_6.1.60103-1_all.deb +RUN apt -y install ./amdgpu-install_6.1.60103-1_all.deb +RUN DEBIAN_FRONTEND=noninteractive amdgpu-install --accept-eula -y --usecase=rocm,hiplibsdk --no-dkms # Set environment variables ENV PATH="$PATH:/opt/rocm/bin:/opt/rocm/rocprofiler/bin:/opt/rocm/hip/bin" ENV LD_LIBRARY_PATH="/opt/rocm/lib:/opt/rocm/llvm/lib:/opt/rocm/hip/lib" -# Install CMake -ARG CMAKE_VERSION=3.25.1 -RUN wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh &&\ - chmod +x cmake-${CMAKE_VERSION}-linux-x86_64.sh &&\ - mkdir /opt/cmake && \ - ./cmake-${CMAKE_VERSION}-linux-x86_64.sh --skip-license --prefix=/opt/cmake &&\ - ln -s /opt/cmake/bin/* /usr/local/bin/ - COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]