mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-01-26 17:20:04 +00:00
1. Removes the MODULES ARG. 2. Replaces the final CMD with ENTRYPOINT. This allows the modules to be selected at run time of the docker, rather than compile time of the image.
35 lines
786 B
Docker
35 lines
786 B
Docker
FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04
|
|
|
|
EXPOSE 5100
|
|
|
|
ENV PATH="/root/miniconda3/bin:${PATH}"
|
|
ARG PATH="/root/miniconda3/bin:${PATH}"
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
python3 python3-venv wget build-essential ffmpeg
|
|
|
|
RUN wget \
|
|
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
|
&& mkdir /root/.conda \
|
|
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
|
|
&& rm -f Miniconda3-latest-Linux-x86_64.sh
|
|
|
|
RUN conda --version
|
|
|
|
RUN conda init
|
|
|
|
RUN conda create -n extras
|
|
|
|
RUN /bin/bash -c "source activate extras"
|
|
|
|
RUN conda install -y python=3.11
|
|
|
|
WORKDIR /sillytavern-extras/
|
|
COPY . .
|
|
|
|
ARG REQUIREMENTS
|
|
RUN pip install -r $REQUIREMENTS
|
|
|
|
ENTRYPOINT ["python","server.py"]
|