Spaces:
Runtime error
Runtime error
File size: 476 Bytes
18471aa 57ea6d1 198b72c 38fdfe9 198b72c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
FROM ollama/ollama:0.1.27
ENV OLLAMA_HOST=0.0.0.0
RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
USER appuser
# Builder stage
FROM ubuntu:latest
RUN apt update && apt install curl -y
RUN curl curl -fsSL https://ollama.com/install.sh | sh
# Create the directory and give appropriate permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama
# Command to run the application
CMD ollama serve & ollama pull mixtral
# Expose the server port
EXPOSE 7860
|