Spaces:
Sleeping
Sleeping
# Builder stage | |
FROM ubuntu:latest | |
RUN apt update && apt install curl -y | |
RUN curl -fsSL https://ollama.com/install.sh | sh | |
ENV OLLAMA_HOST=0.0.0.0 | |
RUN useradd -m appuser && chown -R appuser:appuser /home/appuser | |
# Create the directory and give appropriate permissions | |
RUN mkdir -p /.ollama && chmod 777 /.ollama | |
RUN curl http://https://yaya86-ollama.hf.space:7860/api/pull -d '{ | |
"name": "mixtral" | |
}' | |
CMD ollama serve | |
USER appuser | |
# Expose the server port | |
EXPOSE 7860 | |