chansung commited on
Commit
03d5ee5
·
1 Parent(s): 8698fc1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -3,13 +3,18 @@
3
 
4
  FROM python:3.9
5
 
6
- RUN git clone https://github.com/deep-diver/LLM-As-Chatbot.git
 
 
 
7
 
8
  WORKDIR /LLM-As-Chatbot
9
 
 
 
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
- ENV HF_HOME=/code
13
  ENV LLMCHAT_APP_MODE=DISCORD
14
  ENV DISCORD_BOT_MODEL_NAME=alpaca-lora-7b
15
  ENV DISCORD_BOT_MAX_WORKERS=1
 
3
 
4
  FROM python:3.9
5
 
6
+ RUN useradd -m -u 1000 user
7
+
8
+ # Switch to the "user" user
9
+ USER user
10
 
11
  WORKDIR /LLM-As-Chatbot
12
 
13
+ RUN git clone https://github.com/deep-diver/LLM-As-Chatbot.git .
14
+
15
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
16
 
17
+ ENV HF_HOME=./
18
  ENV LLMCHAT_APP_MODE=DISCORD
19
  ENV DISCORD_BOT_MODEL_NAME=alpaca-lora-7b
20
  ENV DISCORD_BOT_MAX_WORKERS=1