fix(docker): standardize Dockerfile and entrypoint filenames; add GPU-specific Dockerfiles and update build and test references

This commit is contained in:
2026-01-17 23:13:47 +00:00
parent ab288380f1
commit 5a311dca2d
11 changed files with 17 additions and 138 deletions

View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -e
# Default model to pull
MODEL_NAME="${MODEL_NAME:-minicpm-v}"
# Start Ollama server in background
echo "Starting Ollama server..."
ollama serve &
# Wait for Ollama to be ready
echo "Waiting for Ollama server to start..."
sleep 5
# Check if model is already pulled
if ! ollama list | grep -q "${MODEL_NAME}"; then
echo "Pulling model: ${MODEL_NAME}..."
ollama pull "${MODEL_NAME}"
echo "Model ${MODEL_NAME} pulled successfully."
else
echo "Model ${MODEL_NAME} already available."
fi
echo "Ollama server ready with ${MODEL_NAME}"
echo "API available at http://0.0.0.0:11434"
# Keep container running
wait