|
|
|
FROM python:3.10-slim-buster |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
COPY requirements.txt . |
|
COPY extensions/openai/requirements.txt . |
|
|
|
|
|
RUN pip install --upgrade pip \ |
|
&& pip install -r extensions/openai/requirements.txt \ |
|
&& pip install -r requirements.txt |
|
|
|
|
|
RUN git clone https://github.com/oobabooga/text-generation-webui |
|
|
|
|
|
WORKDIR /app/text-generation-webui |
|
|
|
|
|
RUN python download-model.py https://huggingface.co./DanielAWrightGabrielAI/mpt-7b-storywriter-4bit-128g-65kTokens-CPU |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["python", "server.py", "--share", "--model", "/app/text-generation-webui/models/DanielAWrightGabrielAI_mpt-7b-storywriter-4bit-128g-65kTokens-CPU", "--trust-remote-code", "--api", "--public-api" |