Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2023-10-23 01:42:57 +00:00
commit 1a54b137c3
4 changed files with 71 additions and 0 deletions

14
Containerfile Normal file
View File

@@ -0,0 +1,14 @@
# podman run -it -e NVIDIA_DRIVER_CAPABILITIES=compute,utility spark:latest bash
FROM archlinux:latest
RUN pacman-key --init
RUN pacman -Suy --noconfirm
COPY stable-diffusion-ui.pkg.tar.zst /stable-diffusion-ui.pkg.tar.zst
COPY init /init
COPY config.yaml /config.yaml
RUN pacman -S --noconfirm curl which nvidia-utils
RUN useradd -m -s /usr/bin/bash -d /srv/stable-diffusion stable-diffusion
ENTRYPOINT /init