Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -20,19 +20,19 @@ WORKDIR /home/appuser/.ollama
|
|
| 20 |
|
| 21 |
#Copy dossier de models
|
| 22 |
|
| 23 |
-
COPY --chown=appuser models /.ollama
|
| 24 |
#RUN chmod 777 /home/appuser/.ollama/models
|
| 25 |
# Copy the entry point script
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
# Set the entry point script as the default command
|
| 30 |
-
|
| 31 |
-
CMD ollama serve
|
| 32 |
|
| 33 |
# Set the model as an environment variable (this can be overridden)
|
| 34 |
-
|
| 35 |
-
ENV OLLAMA_MODELS="/home/appuser/.ollama/models"
|
| 36 |
|
| 37 |
# Expose the server port
|
| 38 |
EXPOSE 7860
|
|
|
|
| 20 |
|
| 21 |
#Copy dossier de models
|
| 22 |
|
| 23 |
+
#COPY --chown=appuser models /.ollama
|
| 24 |
#RUN chmod 777 /home/appuser/.ollama/models
|
| 25 |
# Copy the entry point script
|
| 26 |
+
COPY --chown=appuser entrypoint.sh /entrypoint.sh
|
| 27 |
+
RUN chmod +x /entrypoint.sh
|
| 28 |
|
| 29 |
# Set the entry point script as the default command
|
| 30 |
+
ENTRYPOINT ["/entrypoint.sh"]
|
| 31 |
+
#CMD ollama serve
|
| 32 |
|
| 33 |
# Set the model as an environment variable (this can be overridden)
|
| 34 |
+
ENV model="nomic-embed-text","yayarun/gemma_erbot"
|
| 35 |
+
#ENV OLLAMA_MODELS="/home/appuser/.ollama/models"
|
| 36 |
|
| 37 |
# Expose the server port
|
| 38 |
EXPOSE 7860
|