# Use the official Ollama image as the base FROM ollama/ollama WORKDIR /app COPY . . # Set up a volume for Ollama data VOLUME /root/.ollama # RUN chmod +x start_ollama.sh \ # && ./start_ollama.sh RUN ollama serve & sleep 5 && ollama pull llama3.2:1b-instruct-q4_K_M # Expose port 11434 EXPOSE 11434 CMD [ "ollama", "--version" ]