Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the Ollama image as the base
|
2 |
+
FROM ollama/ollama
|
3 |
+
|
4 |
+
# Set up environment variables (if any are needed)
|
5 |
+
ENV LANG=C.UTF-8
|
6 |
+
ENV LC_ALL=C.UTF-8
|
7 |
+
|
8 |
+
# Expose the necessary port
|
9 |
+
EXPOSE 11434
|
10 |
+
|
11 |
+
# Set up a volume mount for persistent storage
|
12 |
+
VOLUME /root/.ollama
|
13 |
+
|
14 |
+
# Run the ollama service and execute the embed-text command
|
15 |
+
CMD ["sh", "-c", "ollama run nomic-embed-text"]
|