mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-15 14:31:44 +03:00
f6394a89ca
1. The update to Streamlit 1.13 has bee mirrored 2. Streamlit needs to be in Headless mode so it doesn't pester about wanting an email on startup, which crashes in docker since there's no stdin 3. Fixed an issue where opencv-python from the base image was not allowing us to override it with opencv-python-headless, which is required because of its lack of runtime DLLs (+ it's smaller)
49 lines
1.6 KiB
Docker
49 lines
1.6 KiB
Docker
# This file is part of stable-diffusion-webui (https://github.com/sd-webui/stable-diffusion-webui/).
|
|
|
|
# Copyright 2022 sd-webui team.
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
# Assumes host environment is AMD64 architecture
|
|
|
|
# We should use the Pytorch CUDA/GPU-enabled base image. See: https://hub.docker.com/r/pytorch/pytorch/tags
|
|
# FROM nvidia/cuda:11.3.1-runtime-ubuntu20.04
|
|
|
|
# Assumes AMD64 host architecture
|
|
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime
|
|
|
|
WORKDIR /install
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y wget git && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY ./requirements.txt /install/
|
|
|
|
RUN pip install -r /install/requirements.txt
|
|
# From base image. We need opencv-python-headless so we uninstall here
|
|
RUN pip uninstall -y opencv-python && pip install opencv-python-headless==4.6.0.66
|
|
|
|
# Install font for prompt matrix
|
|
COPY /data/DejaVuSans.ttf /usr/share/fonts/truetype/
|
|
|
|
ENV PYTHONPATH=/sd
|
|
|
|
EXPOSE 7860 8501
|
|
|
|
COPY ./entrypoint.sh /sd/
|
|
ENTRYPOINT /sd/entrypoint.sh
|
|
|