cenrak commited on
Commit
c2ff9f3
·
verified ·
1 Parent(s): 61bb2ed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- RUN useradd -m user && chown -R user:user /home/user
 
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