Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -5,12 +5,14 @@ RUN apt-get update && apt-get install -y curl
|
|
| 5 |
|
| 6 |
# Install Ollama using the official install script
|
| 7 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 8 |
-
|
|
|
|
| 9 |
# Set the Ollama host environment variable
|
| 10 |
ENV OLLAMA_HOST=0.0.0.0
|
|
|
|
| 11 |
|
| 12 |
# Expose the Ollama server port
|
| 13 |
EXPOSE 7860
|
| 14 |
-
EXPOSE 11434
|
| 15 |
|
| 16 |
-
CMD ollama serve
|
|
|
|
| 5 |
|
| 6 |
# Install Ollama using the official install script
|
| 7 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 8 |
+
RUN mkdir -p /app/model
|
| 9 |
+
ENV OLLAMA_MODELS=/app/model
|
| 10 |
# Set the Ollama host environment variable
|
| 11 |
ENV OLLAMA_HOST=0.0.0.0
|
| 12 |
+
ENV OLLAMA_ORIGINS='*'
|
| 13 |
|
| 14 |
# Expose the Ollama server port
|
| 15 |
EXPOSE 7860
|
| 16 |
+
EXPOSE 11434
|
| 17 |
|
| 18 |
+
CMD ollama serve & sleep 25 && OLLAMA_HOST=127.0.0.1 ollama pull llama3.3:70b & OLLAMA_HOST=127.0.0.1 ollama pull qwen3-embedding:0.6b & OLLAMA_HOST=127.0.0.1 ollama pull gemma3 & OLLAMA_HOST=127.0.0.1 ollama pull codellama:70b
|