Spaces:
Sleeping
Sleeping
Commit
·
cbe20df
0
Parent(s):
Fresh start with workspace configuration
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ollama/ollama
|
2 |
+
|
3 |
+
VOLUME /root/.ollama
|
4 |
+
|
5 |
+
RUN echo '#!/bin/bash\n\
|
6 |
+
export OLLAMA_HOST=0.0.0.0:7860\n\
|
7 |
+
ollama serve &\n\
|
8 |
+
sleep 20\n\
|
9 |
+
echo "Pulling minicpm-v..."\n\
|
10 |
+
ollama pull minicpm-v\n\
|
11 |
+
wait' > /start.sh && chmod +x /start.sh
|
12 |
+
|
13 |
+
EXPOSE 7860
|
14 |
+
ENTRYPOINT ["/bin/bash", "/start.sh"]
|
15 |
+
|
16 |
+
|
17 |
+
#git add Dockerfile
|
18 |
+
#git commit -m "Update Dockerfile with Ollama service initialization"
|
19 |
+
#git push origin master
|