Yaya86 commited on
Commit
b64de7c
·
verified ·
1 Parent(s): 0a5c824

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -13,11 +13,15 @@ RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
13
  # Create the directory and give appropriate permissions
14
  RUN mkdir -p /home/appuser/.ollama && chmod 777 /home/appuser/.ollama
15
 
 
 
 
 
16
  WORKDIR /home/appuser/.ollama
17
 
18
  CMD ["ollama", "serve"]
19
 
20
- #USER appuser
21
 
22
  # Expose the server port
23
  EXPOSE 11434
 
13
  # Create the directory and give appropriate permissions
14
  RUN mkdir -p /home/appuser/.ollama && chmod 777 /home/appuser/.ollama
15
 
16
+ USER appuser
17
+
18
+ COPY --chown=appuser ./Yaya86/ollama-server/id_ed25519.pub ./home/appuser/.ollama
19
+
20
  WORKDIR /home/appuser/.ollama
21
 
22
  CMD ["ollama", "serve"]
23
 
24
+
25
 
26
  # Expose the server port
27
  EXPOSE 11434