# Use the Ollama image as the base FROM ollama/ollama # Set up environment variables (if any are needed) ENV LANG=C.UTF-8 ENV LC_ALL=C.UTF-8 # Expose the necessary port EXPOSE 11434 # Set up a volume mount for persistent storage VOLUME /root/.ollama # Run the ollama service and execute the embed-text command CMD ["sh", "-c", "ollama run nomic-embed-text"]