Skip to content

[BUG] Docker build failing for self hosting #75

Description

@BillMerryman

Running the build as described in https://sentient-2.gitbook.io/docs/getting-started/running-sentient-from-source-self-host

keep getting the same error:

405.2 Error: ollama server not responding - could not connect to ollama server, run 'ollama serve' to start it

Dockerfile:43


42 | # Conditional Ollama installation

43 | >>> RUN if [ "$OPENAI_API_KEY" = "ollama" ]; then \

44 | >>> echo "Ollama API key detected. Installing Ollama..."; \

45 | >>> curl -fsSL https://ollama.com/install.sh | sh; \

46 | >>> echo "Pulling model: ${OPENAI_MODEL_NAME}"; \

47 | >>> /usr/local/bin/ollama pull ${OPENAI_MODEL_NAME}; \

48 | >>> else \

49 | >>> echo "Ollama configuration not detected. Skipping installation."; \

50 | >>> fi

51 |


target server: failed to solve: process "/bin/sh -c if [ "$OPENAI_API_KEY" = "ollama" ]; then echo "Ollama API key detected. Installing Ollama..."; curl -fsSL https://ollama.com/install.sh | sh; echo "Pulling model: ${OPENAI_MODEL_NAME}"; /usr/local/bin/ollama pull ${OPENAI_MODEL_NAME}; else echo "Ollama configuration not detected. Skipping installation."; fi" did not complete successfully: exit code: 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions