Yaya86 commited on
Commit
edd8a3c
1 Parent(s): f4e8969

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -42,12 +42,12 @@ RUN userdel ubuntu && useradd -m -u 1000 appuser
42
 
43
  #RUN chmod 777 /home/appuser/.ollama/models
44
  # Copy the entry point script
45
- #COPY --chown=appuser entrypoint.sh /entrypoint.sh
46
- #RUN chmod +x /entrypoint.sh
47
 
48
  # Set the entry point script as the default command
49
- #ENTRYPOINT ["/entrypoint.sh"]
50
- CMD ollama serve & sleep 30 && ollama pull llama3:8b-instruct-q8_0
51
  # Set the model as an environment variable (this can be overridden)
52
  #ENV model="nomic-embed-text","yayarun/mixtral_erbot"
53
  ENV OLLAMA_MODELS="/usr/share/ollama/.ollama/models"
 
42
 
43
  #RUN chmod 777 /home/appuser/.ollama/models
44
  # Copy the entry point script
45
+ COPY --chown=appuser start.sh /start.sh
46
+ RUN chmod +x /start.sh
47
 
48
  # Set the entry point script as the default command
49
+ ENTRYPOINT ["/start.sh"]
50
+ #CMD ollama serve & sleep 30 && ollama pull llama3:8b-instruct-q8_0
51
  # Set the model as an environment variable (this can be overridden)
52
  #ENV model="nomic-embed-text","yayarun/mixtral_erbot"
53
  ENV OLLAMA_MODELS="/usr/share/ollama/.ollama/models"