Update Dockerfile
Browse files- Dockerfile +6 -11
Dockerfile
CHANGED
@@ -19,11 +19,6 @@ RUN cut -d: -f1,3 /etc/passwd
|
|
19 |
|
20 |
RUN userdel ubuntu && useradd -m -u 1000 appuser
|
21 |
|
22 |
-
RUN apt update
|
23 |
-
|
24 |
-
RUN apt install python3-pip -y
|
25 |
-
|
26 |
-
RUN pip install "huggingface_hub[cli]"
|
27 |
|
28 |
#RUN chown -R appuser:appuser /home/appuser
|
29 |
|
@@ -46,21 +41,21 @@ RUN pip install "huggingface_hub[cli]"
|
|
46 |
#WORKDIR /.ollama
|
47 |
|
48 |
|
49 |
-
|
50 |
#COPY --chown=appuser model_llm_local/jsonl_llama3_instruct /usr/share/ollama/.ollama/models
|
51 |
|
52 |
#RUN chmod 777 /home/appuser/.ollama/models
|
53 |
# Copy the entry point script
|
54 |
-
COPY --chown=appuser start.sh /start.sh
|
55 |
-
RUN chmod +x /start.sh
|
56 |
|
57 |
# Set the entry point script as the default command
|
58 |
-
ENTRYPOINT ["/start.sh"]
|
59 |
-
|
60 |
#& sleep 30 && ollama pull llama3:8b-instruct-q8_0
|
61 |
# Set the model as an environment variable (this can be overridden)
|
62 |
#ENV model="nomic-embed-text","yayarun/mixtral_erbot"
|
63 |
-
|
64 |
|
65 |
# Expose the server port
|
66 |
EXPOSE 7860
|
|
|
19 |
|
20 |
RUN userdel ubuntu && useradd -m -u 1000 appuser
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
#RUN chown -R appuser:appuser /home/appuser
|
24 |
|
|
|
41 |
#WORKDIR /.ollama
|
42 |
|
43 |
|
44 |
+
COPY --chown=appuser model_llm_local/model_ollama3 /usr/share/ollama/.ollama/models
|
45 |
#COPY --chown=appuser model_llm_local/jsonl_llama3_instruct /usr/share/ollama/.ollama/models
|
46 |
|
47 |
#RUN chmod 777 /home/appuser/.ollama/models
|
48 |
# Copy the entry point script
|
49 |
+
#COPY --chown=appuser start.sh /start.sh
|
50 |
+
#RUN chmod +x /start.sh
|
51 |
|
52 |
# Set the entry point script as the default command
|
53 |
+
#ENTRYPOINT ["/start.sh"]
|
54 |
+
CMD ollama serve
|
55 |
#& sleep 30 && ollama pull llama3:8b-instruct-q8_0
|
56 |
# Set the model as an environment variable (this can be overridden)
|
57 |
#ENV model="nomic-embed-text","yayarun/mixtral_erbot"
|
58 |
+
ENV OLLAMA_MODELS="/usr/share/ollama/.ollama/models"
|
59 |
|
60 |
# Expose the server port
|
61 |
EXPOSE 7860
|