Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -3,13 +3,18 @@
|
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
6 |
-
RUN
|
|
|
|
|
|
|
7 |
|
8 |
WORKDIR /LLM-As-Chatbot
|
9 |
|
|
|
|
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
-
ENV HF_HOME
|
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
|