stable-diffusion-ui-podman/Containerfile
fbt 114eaafb90 oh you do actually need this
Signed-off-by: fbt <fbt@fleshless.org>
2023-10-24 19:23:15 +00:00

25 lines
692 B
Docker

# Stage 0
FROM archlinux:base-devel
RUN pacman-key --init
RUN pacman -Suy --noconfirm git
RUN useradd --no-create-home --shell=/bin/false build && usermod -L build && echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN git clone https://aur.archlinux.org/stable-diffusion-ui.git /sdu
WORKDIR /sdu
RUN chown -R build:build /sdu
RUN sudo -u build makepkg -s --noconfirm
RUN mv -v stable-diffusion-ui*.pkg.tar.zst /stable-diffusion-ui.pkg.tar.zst
# Stage 1
FROM archlinux:latest
COPY --from=0 /stable-diffusion-ui.pkg.tar.zst /stable-diffusion-ui.pkg.tar.zst
RUN pacman-key --init
RUN pacman -Suy --noconfirm which nvidia-utils
COPY init /init
COPY config.yaml /config.yaml
CMD /init