Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Ollama Docker image
|
2 |
+
FROM ollama/ollama:latest
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy any necessary files or scripts
|
8 |
+
# COPY ./your_scripts /app/
|
9 |
+
|
10 |
+
# Start the Ollama API server
|
11 |
+
EXPOSE 11434
|
12 |
+
|
13 |
+
# Entrypoint script (optional, for initialization before the server starts)
|
14 |
+
# ENTRYPOINT ["/bin/bash", "-c", "ollama serve"]
|
15 |
+
|
16 |
+
CMD ["ollama", "serve"] # Start the Ollama server on boot
|