Spaces:
Sleeping
Sleeping
taowang1993
commited on
Create Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu:latest
|
2 |
+
|
3 |
+
# Update packages and install curl and gnupg
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
curl \
|
6 |
+
gnupg \
|
7 |
+
wget
|
8 |
+
|
9 |
+
ENV OLLAMA_HOST=0.0.0.0
|
10 |
+
|
11 |
+
# Install application
|
12 |
+
RUN curl https://ollama.ai/install.sh | sh
|
13 |
+
RUN mkdir -p /.ollama && chmod 777 /.ollama
|
14 |
+
|
15 |
+
COPY ./Modelfile /.ollama/Modelfile
|
16 |
+
WORKDIR /.ollama
|
17 |
+
|
18 |
+
COPY entrypoint.sh /entrypoint.sh
|
19 |
+
RUN chmod +x /entrypoint.sh
|
20 |
+
|
21 |
+
EXPOSE 11434
|
22 |
+
|
23 |
+
ENTRYPOINT ["/entrypoint.sh"]
|
24 |
+
CMD ["ollama", "serve"]
|