mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-03-05 05:24:54 +08:00
20 lines
472 B
Docker
20 lines
472 B
Docker
FROM python:3.10-bookworm
|
|
|
|
WORKDIR /webui
|
|
|
|
RUN apt-get update && \
|
|
apt-get install ffmpeg libsm6 libxext6 dos2unix google-perftools -y
|
|
|
|
COPY . .
|
|
|
|
RUN dos2unix ./webui.sh ./webui-user.sh
|
|
|
|
RUN groupadd --system --gid 1000 webui && \
|
|
useradd webui --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
|
|
chown -R webui:webui .
|
|
USER 1000:1000
|
|
|
|
RUN ./webui.sh --prepare-environment-only --skip-torch-cuda-test
|
|
|
|
CMD [ "./webui.sh", "--skip-prepare-environment" ]
|