Update Dockerfile
Browse files- Dockerfile +6 -8
Dockerfile
CHANGED
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y curl
|
|
15 |
#COPY $CHAT_MODEL_FILE /models/$CHAT_MODEL_FILE
|
16 |
#COPY $EMBEDDING_MODEL_FILE /models/$EMBEDDING_MODEL_FILE
|
17 |
|
18 |
-
RUN mkdir /app && chmod -R 777 /app && cd /app
|
19 |
|
20 |
# Set up a new user named "user" with user ID 1000
|
21 |
RUN useradd -m -u 1000 user
|
@@ -27,10 +27,10 @@ USER user
|
|
27 |
ENV HOME=/home/user \
|
28 |
PATH=/home/user/.local/bin:$PATH
|
29 |
|
30 |
-
RUN mkdir $HOME/models && cd $HOME/models
|
31 |
# Set the working directory to the user's home directory
|
32 |
WORKDIR $HOME/models
|
33 |
-
|
34 |
#RUN curl -LO https://huggingface.co/second-state/Llama-3-8B-Instruct-GGUF/resolve/main/Meta-Llama-3-8B-Instruct-Q5_K_M.gguf
|
35 |
#RUN curl -LO https://huggingface.co/second-state/Nomic-embed-text-v1.5-Embedding-GGUF/resolve/main/nomic-embed-text-v1.5-f16.gguf
|
36 |
|
@@ -42,15 +42,13 @@ RUN curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/i
|
|
42 |
RUN curl -LO https://github.com/LlamaEdge/LlamaEdge/releases/latest/download/llama-api-server.wasm
|
43 |
RUN curl -LO https://github.com/second-state/chatbot-ui/releases/latest/download/chatbot-ui.tar.gz; tar xzf chatbot-ui.tar.gz; rm chatbot-ui.tar.gz
|
44 |
COPY run.sh .
|
45 |
-
|
46 |
|
47 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
48 |
COPY --chown=user . $HOME/app
|
49 |
|
50 |
# Download a checkpoint
|
51 |
-
RUN mkdir content
|
52 |
-
ADD --chown=user https://huggingface.co/second-state/Nomic-embed-text-v1.5-Embedding-GGUF/resolve/main/nomic-embed-text-v1.5-f16.gguf content/models
|
53 |
-
|
54 |
-
RUN chmod -R 777 $HOME/app
|
55 |
|
56 |
ENTRYPOINT $HOME/app/run.sh $CHAT_MODEL_FILE $EMBEDDING_MODEL_FILE $PROMPT_TEMPLATE "$@"
|
|
|
15 |
#COPY $CHAT_MODEL_FILE /models/$CHAT_MODEL_FILE
|
16 |
#COPY $EMBEDDING_MODEL_FILE /models/$EMBEDDING_MODEL_FILE
|
17 |
|
18 |
+
#RUN mkdir /app && chmod -R 777 /app && cd /app
|
19 |
|
20 |
# Set up a new user named "user" with user ID 1000
|
21 |
RUN useradd -m -u 1000 user
|
|
|
27 |
ENV HOME=/home/user \
|
28 |
PATH=/home/user/.local/bin:$PATH
|
29 |
|
30 |
+
#RUN mkdir $HOME/models && cd $HOME/models
|
31 |
# Set the working directory to the user's home directory
|
32 |
WORKDIR $HOME/models
|
33 |
+
ADD --chown=user https://huggingface.co/second-state/Nomic-embed-text-v1.5-Embedding-GGUF/resolve/main/nomic-embed-text-v1.5-f16.gguf
|
34 |
#RUN curl -LO https://huggingface.co/second-state/Llama-3-8B-Instruct-GGUF/resolve/main/Meta-Llama-3-8B-Instruct-Q5_K_M.gguf
|
35 |
#RUN curl -LO https://huggingface.co/second-state/Nomic-embed-text-v1.5-Embedding-GGUF/resolve/main/nomic-embed-text-v1.5-f16.gguf
|
36 |
|
|
|
42 |
RUN curl -LO https://github.com/LlamaEdge/LlamaEdge/releases/latest/download/llama-api-server.wasm
|
43 |
RUN curl -LO https://github.com/second-state/chatbot-ui/releases/latest/download/chatbot-ui.tar.gz; tar xzf chatbot-ui.tar.gz; rm chatbot-ui.tar.gz
|
44 |
COPY run.sh .
|
45 |
+
RUN chmod +x run.sh
|
46 |
|
47 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
48 |
COPY --chown=user . $HOME/app
|
49 |
|
50 |
# Download a checkpoint
|
51 |
+
#RUN mkdir content
|
52 |
+
#ADD --chown=user https://huggingface.co/second-state/Nomic-embed-text-v1.5-Embedding-GGUF/resolve/main/nomic-embed-text-v1.5-f16.gguf content/models
|
|
|
|
|
53 |
|
54 |
ENTRYPOINT $HOME/app/run.sh $CHAT_MODEL_FILE $EMBEDDING_MODEL_FILE $PROMPT_TEMPLATE "$@"
|