Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMD driver #14

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ ENV PORT=7860 \
COMMANDLINE_ARGS=''

WORKDIR /opt
RUN apt-get -y update && \
apt-get install -y --no-install-recommends libstdc++-12-dev ca-certificates wget gnupg2 gawk curl git libglib2.0-0 apt-utils python3.10-venv python3-pip && \
wget https://repo.radeon.com/amdgpu-install/5.5/ubuntu/jammy/amdgpu-install_5.5.50500-1_all.deb && \
apt-get install -y ./amdgpu-install_5.5.50500-1_all.deb && \
amdgpu-install -y --usecase=rocm --no-dkms && \
git clone -b $SD_BRANCH https://github.com/hydrian/stable-diffusion-webui.git /sd && \
true

RUN apt -y update

RUN apt-get install -y --no-install-recommends libstdc++-12-dev ca-certificates wget gnupg2 gawk curl git libglib2.0-0 apt-utils python3.10-venv python3-pip libxml2-utils

# Install AMD Driver
RUN FILENAME=$(curl https://repo.radeon.com/amdgpu-install/latest/ubuntu/jammy/ | grep deb | xmllint --html --format --xpath "string(//a/@href)" - ) \
&& TEMP_DEB="$(mktemp)" \
&& wget -O "$TEMP_DEB" https://repo.radeon.com/amdgpu-install/latest/ubuntu/jammy/"$FILENAME" \
&& dpkg -i "$TEMP_DEB" \
&& rm -f "$TEMP_DEB"

RUN amdgpu-install -y --usecase=rocm

RUN git clone -b $SD_BRANCH https://github.com/hydrian/stable-diffusion-webui.git /sd

WORKDIR /sd

Expand Down