Yaya86 commited on
Commit
8e412d6
·
verified ·
1 Parent(s): 4c82e7c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ubuntu:latest
2
 
3
  #22.04
4
 
@@ -17,13 +17,14 @@ ENV OLLAMA_HOST=0.0.0.0
17
 
18
  #RUN cut -d: -f1,3 /etc/passwd
19
 
20
- RUN userdel ubuntu && useradd -m -u 1000 appuser
21
 
22
  #RUN chown -R appuser:appuser /home/appuser
23
 
24
  #USER appuser
25
 
26
- #RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /home/appuser
 
27
 
28
 
29
  # Create the directory and give appropriate permissions
@@ -36,8 +37,8 @@ RUN userdel ubuntu && useradd -m -u 1000 appuser
36
  #WORKDIR /.ollama
37
 
38
 
39
- COPY --chown=appuser model_llm_local/model_ollama3 /usr/share/ollama/.ollama/models
40
- #COPY --chown=appuser model_llm_local/jsonl_llama3_instruct /usr/share/ollama/.ollama/models
41
 
42
  #RUN chmod 777 /home/appuser/.ollama/models
43
  # Copy the entry point script
 
1
+ FROM ubuntu:22.04
2
 
3
  #22.04
4
 
 
17
 
18
  #RUN cut -d: -f1,3 /etc/passwd
19
 
20
+ #RUN userdel ubuntu && useradd -m -u 1000 appuser
21
 
22
  #RUN chown -R appuser:appuser /home/appuser
23
 
24
  #USER appuser
25
 
26
+ RUN useradd -m -u 1000 appuser
27
+ #&& chown -R appuser:appuser /home/appuser
28
 
29
 
30
  # Create the directory and give appropriate permissions
 
37
  #WORKDIR /.ollama
38
 
39
 
40
+ #COPY --chown=appuser model_llm_local/model_ollama3 /usr/share/ollama/.ollama/models
41
+ COPY --chown=appuser model_llm_local/jsonl_llama3_instruct /usr/share/ollama/.ollama/models
42
 
43
  #RUN chmod 777 /home/appuser/.ollama/models
44
  # Copy the entry point script