Update Dockerfile
Browse files- Dockerfile +1 -12
Dockerfile
CHANGED
@@ -12,20 +12,9 @@ RUN mkdir -p /.ollama && chmod 777 /.ollama
|
|
12 |
|
13 |
WORKDIR /.ollama
|
14 |
|
15 |
-
|
16 |
-
COPY entrypoint.sh /entrypoint.sh
|
17 |
-
RUN chmod +x /entrypoint.sh
|
18 |
-
|
19 |
-
# Set the entry point script as the default command
|
20 |
-
ENTRYPOINT ["/entrypoint.sh"]
|
21 |
CMD ["ollama", "serve"]
|
22 |
|
23 |
-
# Set the model as an environment variable (this can be overridden)
|
24 |
-
ENV model=${model}
|
25 |
-
|
26 |
-
# Expose the server port
|
27 |
-
EXPOSE 7860
|
28 |
-
|
29 |
RUN useradd -m -u 1000 user
|
30 |
USER user
|
31 |
ENV HOME /home/user
|
|
|
12 |
|
13 |
WORKDIR /.ollama
|
14 |
|
15 |
+
CMD ["ollama", "pull", "adrienbrault/nous-hermes2theta-llama3-8b:q8_0"]
|
|
|
|
|
|
|
|
|
|
|
16 |
CMD ["ollama", "serve"]
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
RUN useradd -m -u 1000 user
|
19 |
USER user
|
20 |
ENV HOME /home/user
|