Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ollama/ollama:latest
|
| 2 |
+
|
| 3 |
+
# Set Ollama to listen on port 7860 (Hugging Face default)
|
| 4 |
+
ENV OLLAMA_HOST=0.0.0.0:7860
|
| 5 |
+
EXPOSE 7860
|
| 6 |
+
|
| 7 |
+
# Create a script to pull the model on startup
|
| 8 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 9 |
+
RUN chmod +x /entrypoint.sh
|
| 10 |
+
|
| 11 |
+
ENTRYPOINT ["/entrypoint.sh"]
|