Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu
|
2 |
+
|
3 |
+
RUN apt-get update && \
|
4 |
+
apt-get install -y --no-install-recommends ca-certificates wget && \
|
5 |
+
wget -O /usr/local/bin/ollama https://github.com/ollama/ollama/releases/latest/download/ollama-linux-amd64 &&\
|
6 |
+
chmod +x /usr/local/bin/ollama
|
7 |
+
|
8 |
+
ENV OLLAMA_HOST="0.0.0.0:7860"
|
9 |
+
ENV OLLAMA_ORIGINS="*"
|
10 |
+
|
11 |
+
CMD ["sh", "-c", "ollama serve & sleep 10 && ollama run qwen2 && sleep infinity"]
|