papaduvalier
commited on
Commit
•
ff9bf87
1
Parent(s):
d062133
create Docker file with special system papameter
Browse files
Docker2
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ollama/ollama:latest
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install curl -y
|
4 |
+
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
|
7 |
+
USER user
|
8 |
+
|
9 |
+
ENV HOME=/home/user \
|
10 |
+
PATH=/home/user/.local/bin:$PATH \
|
11 |
+
OLLAMA_HOST=0.0.0.0
|
12 |
+
|
13 |
+
WORKDIR $HOME/app
|
14 |
+
|
15 |
+
COPY --chown=user:user Modelfile $HOME/app/
|
16 |
+
|
17 |
+
RUN ollama serve & sleep 5 && ollama create gemma -f Modelfile
|
18 |
+
|
19 |
+
EXPOSE 11434
|