Files
auto-boot-ollama-host/Dockerfile

23 lines
579 B
Docker

# syntax=docker/dockerfile:1
FROM alpine:3.20
# Install minimal tooling
RUN apk add --no-cache \
bash curl ca-certificates \
docker-cli inotify-tools procps \
busybox-extras iputils \
wakeonlan ethtool
# Copy script
WORKDIR /app
COPY scripts/auto-boot-ollama-host.sh /usr/local/bin/auto-boot-ollama-host.sh
RUN chmod +x /usr/local/bin/auto-boot-ollama-host.sh
# Environment defaults (can be overridden by compose/Komodo)
ENV CONTAINER_NAME=paperless-ai \
OLLAMA_HOST=192.168.222.12 \
OLLAMA_PORT=11434 \
SINCE=0s
ENTRYPOINT ["/usr/local/bin/auto-boot-ollama-host.sh"]