mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
3121ba1960
add expose for streamlit port
30 lines
754 B
Docker
30 lines
754 B
Docker
FROM nvidia/cuda:11.3.1-runtime-ubuntu20.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
PYTHONUNBUFFERED=1 \
|
|
PYTHONIOENCODING=UTF-8 \
|
|
CONDA_DIR=/opt/conda
|
|
|
|
WORKDIR /sd
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y libglib2.0-0 wget && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install miniconda
|
|
RUN wget -O ~/miniconda.sh -q --show-progress --progress=bar:force https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
|
|
/bin/bash ~/miniconda.sh -b -p $CONDA_DIR && \
|
|
rm ~/miniconda.sh
|
|
ENV PATH=$CONDA_DIR/bin:$PATH
|
|
|
|
# Install font for prompt matrix
|
|
COPY /data/DejaVuSans.ttf /usr/share/fonts/truetype/
|
|
|
|
EXPOSE 7860 8501
|
|
|
|
COPY ./entrypoint.sh /sd/
|
|
ENTRYPOINT /sd/entrypoint.sh
|