chansung commited on
Commit
6f14090
·
1 Parent(s): 2eba1b3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -1,27 +1,25 @@
1
- # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
- # you will also find guides on how best to write your Dockerfile
3
-
4
  FROM python:3.10
5
 
6
  RUN useradd -m -u 1000 user
7
-
8
  USER user
9
 
10
  WORKDIR /LLM-As-Chatbot
11
 
12
  RUN git clone https://github.com/deep-diver/LLM-As-Chatbot.git .
13
-
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
 
 
 
 
16
  ENV HF_HOME=./
17
  ENV LLMCHAT_APP_MODE=DISCORD
18
- ENV DISCORD_BOT_MODEL_NAME=alpaca-lora-7b
19
  ENV DISCORD_BOT_MAX_WORKERS=1
20
  ENV DISCORD_BOT_LOAD_MODE=CPU
21
 
22
- COPY --chown=user health_check_200.py health_check_200.py
23
- COPY --chown=user entry_script.sh entry_script.sh
24
-
25
- RUN chmod +x ./entry_script.sh
26
 
 
27
  CMD ./entry_script.sh
 
 
 
 
1
  FROM python:3.10
2
 
3
  RUN useradd -m -u 1000 user
 
4
  USER user
5
 
6
  WORKDIR /LLM-As-Chatbot
7
 
8
  RUN git clone https://github.com/deep-diver/LLM-As-Chatbot.git .
 
9
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
 
11
+ COPY --chown=user health_check_200.py health_check_200.py
12
+ COPY --chown=user entry_script.sh entry_script.sh
13
+ RUN chmod +x ./entry_script.sh
14
+
15
  ENV HF_HOME=./
16
  ENV LLMCHAT_APP_MODE=DISCORD
 
17
  ENV DISCORD_BOT_MAX_WORKERS=1
18
  ENV DISCORD_BOT_LOAD_MODE=CPU
19
 
20
+ # Full list of supported models can be found
21
+ # at https://github.com/deep-diver/LLM-As-Chatbot/blob/main/model_cards.json
22
+ ENV DISCORD_BOT_MODEL_NAME=alpaca-lora-7b
 
23
 
24
+ # Also, DISCORD_BOT_TOKEN should be set as HF Space Secret
25
  CMD ./entry_script.sh