mkdir -p ~/stable-diffusion
cd ~/stable-diffusion
# Create a file called Dockerfile and copy the contents of the Dockerfile below.
# Build
docker build -f Dockerfile -t stable-diffusion .
# Run
docker run --dns 0.0.0.0 -t -p 7860:7860 stable-diffusion
Access http://localhost:7860