Update Dockerfile
Browse files- Dockerfile +3 -7
Dockerfile
CHANGED
@@ -1,14 +1,10 @@
|
|
1 |
-
# Use the official Ollama image as the base
|
2 |
FROM ollama/ollama:latest
|
3 |
|
4 |
-
|
5 |
-
ARG OLLAMA_MODEL="all-minilm"
|
6 |
|
7 |
-
|
8 |
-
RUN
|
9 |
|
10 |
-
# Expose the Ollama API port
|
11 |
EXPOSE 11434
|
12 |
|
13 |
-
# Start the server directly
|
14 |
CMD ["ollama", "serve"]
|
|
|
|
|
1 |
FROM ollama/ollama:latest
|
2 |
|
3 |
+
WORKDIR app
|
|
|
4 |
|
5 |
+
COPY pull-model.sh /app
|
6 |
+
RUN chmod +x /pull-model.sh && /pull-model.sh
|
7 |
|
|
|
8 |
EXPOSE 11434
|
9 |
|
|
|
10 |
CMD ["ollama", "serve"]
|