Yaya86 commited on
Commit
a04caab
·
verified ·
1 Parent(s): 01aa2a8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -22,18 +22,19 @@ RUN curl -fsSL https://ollama.com/install.sh | sh
22
  # Create the directory and give appropriate permissions
23
  RUN mkdir -p /.ollama && chmod 777 /.ollama
24
 
25
- WORKDIR /.ollama
 
26
 
27
  # Copy the entry point script
28
- COPY entrypoint.sh /entrypoint.sh
29
- RUN chmod +x /entrypoint.sh
30
 
31
  # Set the entry point script as the default command
32
- ENTRYPOINT ["/entrypoint.sh"]
33
- CMD ["ollama", "serve"]
34
 
35
  # Set the model as an environment variable (this can be overridden)
36
- ENV model=${model}
37
 
38
  # Expose the server port
39
  EXPOSE 7860
 
22
  # Create the directory and give appropriate permissions
23
  RUN mkdir -p /.ollama && chmod 777 /.ollama
24
 
25
+ CMD ollama serve
26
+ #WORKDIR /.ollama
27
 
28
  # Copy the entry point script
29
+ #COPY entrypoint.sh /entrypoint.sh
30
+ #RUN chmod +x /entrypoint.sh
31
 
32
  # Set the entry point script as the default command
33
+ #ENTRYPOINT ["/entrypoint.sh"]
34
+ #CMD ["ollama", "serve"]
35
 
36
  # Set the model as an environment variable (this can be overridden)
37
+ #ENV model=${model}
38
 
39
  # Expose the server port
40
  EXPOSE 7860