Update Dockerfile
Browse files- 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 |
-
|
46 |
-
|
47 |
|
48 |
# Set the entry point script as the default command
|
49 |
-
|
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"
|