# Builder stage FROM ubuntu:latest # Update packages and install curl and gnupg RUN apt-get update && apt-get install -y \ curl \ gnupg \ wget ENV OLLAMA_HOST=0.0.0.0 # Install application RUN curl https://ollama.ai/install.sh | sh RUN mkdir -p /.ollama && chmod 777 /.ollama COPY ./Modelfile /.ollama/Modelfile WORKDIR /.ollama COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh RUN curl -fsSL "https://huggingface.co/johnpaulbin/translator-llm/resolve/main/translator-llama3.1-q4km-2.gguf?download=true" -o llama.gguf EXPOSE 11434 ENTRYPOINT ["/entrypoint.sh"] CMD ["ollama", "serve"]