Ollama keeps building, doesn't start

Hi guys, I want to run Ollama in HF Space. when I tried to deploy using this Dockerfile, I just kept building. it never ruined.

FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl
RUN curl -fsSL https://ollama.com/install.sh | sh
RUN ollama serve
RUN ollama pull qwen: 0.5b
CMD ollama run qwen: 0.5b
EXPOSE 11434

Here is the space link-
https://jadeantonio-ollama.hf.space

ID-
jadeantonio/ollama

1 Like

I think Hugging Face spaces apps must run on port 7860.

1 Like

Or like this in README.md.

app_port : int
Port on which your application is running. Used only if sdk is docker. Default port is 7860.