mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-14 22:13:41 +03:00
5bea9a51c4
* Fix missing docker package * Consolidate docker requirements files
31 lines
716 B
Docker
31 lines
716 B
Docker
# 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
|
|
|
|
# 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
|
|
|