Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -1,13 +1,17 @@
|
|
1 |
FROM ollama/ollama:latest
|
2 |
|
3 |
RUN useradd -m -u 1000 user
|
4 |
-
USER user
|
5 |
|
6 |
-
|
|
|
7 |
|
|
|
8 |
ENV HOME=/home/user \
|
9 |
-
PATH=/home/user/.local/bin:$PATH
|
10 |
OLLAMA_HOST=0.0.0.0:7860
|
|
|
|
|
|
|
11 |
|
12 |
EXPOSE 7860
|
13 |
|
|
|
1 |
FROM ollama/ollama:latest
|
2 |
|
3 |
RUN useradd -m -u 1000 user
|
|
|
4 |
|
5 |
+
# Switch to the "user" user
|
6 |
+
USER user
|
7 |
|
8 |
+
# Set home to the user's home directory
|
9 |
ENV HOME=/home/user \
|
10 |
+
PATH=/home/user/.local/bin:$PATH
|
11 |
OLLAMA_HOST=0.0.0.0:7860
|
12 |
+
|
13 |
+
# Set the working directory to the user's home directory
|
14 |
+
WORKDIR $HOME/app
|
15 |
|
16 |
EXPOSE 7860
|
17 |
|