Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -37,8 +37,8 @@ COPY --chown=user . $HOME/app
|
|
37 |
# Ensure Ollama has a cache directory
|
38 |
RUN mkdir -p /tmp/ollama_cache
|
39 |
|
40 |
-
#
|
41 |
-
RUN ollama
|
42 |
|
43 |
-
# Start
|
44 |
CMD uvicorn main:app --host 0.0.0.0 --port 7860
|
|
|
37 |
# Ensure Ollama has a cache directory
|
38 |
RUN mkdir -p /tmp/ollama_cache
|
39 |
|
40 |
+
# Pre-download the model but do not start Ollama API
|
41 |
+
RUN ollama pull llama3.2
|
42 |
|
43 |
+
# Start FastAPI application without running Ollama serve
|
44 |
CMD uvicorn main:app --host 0.0.0.0 --port 7860
|