File size: 581 Bytes
e4a1f09
 
 
a43588a
e4a1f09
03d5ee5
 
 
 
e4a1f09
8698fc1
 
13966b8
03d5ee5
8698fc1
e4a1f09
03d5ee5
4844d6c
4ca6320
 
eb6c8ae
4844d6c
f9ef03a
 
7f44c4c
5324572
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM python:3.10

RUN useradd -m -u 1000 user

# Switch to the "user" user
USER user

WORKDIR /LLM-As-Chatbot

RUN git clone https://github.com/deep-diver/LLM-As-Chatbot.git . 

RUN pip install --no-cache-dir --upgrade -r requirements.txt

ENV HF_HOME=./
ENV LLMCHAT_APP_MODE=DISCORD
ENV DISCORD_BOT_MODEL_NAME=alpaca-lora-7b
ENV DISCORD_BOT_MAX_WORKERS=1
ENV DISCORD_BOT_LOAD_MODE=CPU

COPY √.py .
COPY entry_script.sh .

CMD [./entry_script.sh]