14 lines
327 B
Docker
14 lines
327 B
Docker
FROM ollama/ollama:latest
|
|
|
|
# Install curl for healthcheck and entrypoint
|
|
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy entrypoint script
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
# Default model to pull
|
|
ENV OLLAMA_MODEL=llama-guard3:1b
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|