Skip to content

Commit 3797117

Browse files
committed
Dockerfile changes to build for ROCm
1 parent 9c2d264 commit 3797117

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎Dockerfile‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
ARG GO_VERSION=1.21-bullseye
1+
ARG GO_VERSION=1.21-bookworm
22
ARG IMAGE_TYPE=extras
33
# extras or core
44

5+
FROM rocm/dev-ubuntu-22.04:6.0-complete as rocm
56

67
FROM golang:$GO_VERSION as requirements-core
78

@@ -40,6 +41,11 @@ RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
4041
; fi
4142
ENV PATH /usr/local/cuda/bin:${PATH}
4243

44+
# HipBLAS requirements
45+
COPY --from=rocm /opt/rocm /opt/rocm
46+
ENV PATH /opt/rocm/bin:${PATH}
47+
ENV ROCM_PATH=/opt/rocm
48+
4349
# OpenBLAS requirements and stable diffusion
4450
RUN apt-get install -y \
4551
libopenblas-dev \
@@ -66,7 +72,7 @@ RUN curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmo
6672
apt-get install -y conda && apt-get clean
6773

6874
ENV PATH="/root/.cargo/bin:${PATH}"
69-
RUN pip install --upgrade pip
75+
RUN apt-get install -y python3-pip && apt-get clean
7076
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
7177
RUN apt-get install -y espeak-ng espeak && apt-get clean
7278

0 commit comments

Comments
 (0)