Skip to content

Instantly share code, notes, and snippets.

@WizardlyBump17
Last active July 25, 2025 20:04
Show Gist options
  • Select an option

  • Save WizardlyBump17/3aebf0e1731500e8f4afcba22055b434 to your computer and use it in GitHub Desktop.

Select an option

Save WizardlyBump17/3aebf0e1731500e8f4afcba22055b434 to your computer and use it in GitHub Desktop.
Dockerfile for kohya_ss on Intel Arc B580
FROM docker.io/intel/intel-extension-for-pytorch:2.7.10-xpu
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt upgrade -y
RUN apt install -y \
libgl1 \
python3-tk
RUN git clone https://github.com/WizardlyBump17/kohya_ss --recurse-submodules
WORKDIR kohya_ss
RUN git checkout dev
#kohya_ss tries to use venv/bin/activate, but we did not create venv
RUN mkdir -p venv/bin && touch venv/bin/activate && chmod +x venv/bin/activate
RUN ./setup.sh --use-ipex
EXPOSE 7860
CMD ["./gui.sh", "--use-ipex", "--headless", "--noverify"]
@WizardlyBump17
Copy link
Author

WizardlyBump17 commented Jul 22, 2025

To run on Ubuntu 25.04 host:

podman run \
  --device=/dev/dri \
  --volume=/dev/dri/by-path:/dev/dri/by-path \
  --network=host \
  -it \
  <tag>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment