Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +13 -13
Dockerfile
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
FROM ollama/ollama
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
| 1 |
FROM ollama/ollama
|
| 2 |
+
|
| 3 |
+
# Set the host to listen on all interfaces
|
| 4 |
+
ENV OLLAMA_HOST=0.0.0.0
|
| 5 |
+
|
| 6 |
+
# Expose the port
|
| 7 |
+
EXPOSE 11434
|
| 8 |
+
|
| 9 |
+
# Pre-download the model so it's ready immediately
|
| 10 |
+
# We start the server briefly in the background to pull the model, then shut it down
|
| 11 |
+
RUN ollama serve & sleep 5 && ollama pull llama3.2:1b
|
| 12 |
+
|
| 13 |
+
# Start Ollama
|
| 14 |
+
ENTRYPOINT ["ollama", "serve"]
|