You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
665 B

# syntax=docker/dockerfile:1
FROM alpine:3.20
# Install minimal tooling
RUN apk add --no-cache \
--repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing wol \
&& apk add --no-cache bash curl ca-certificates docker-cli lua5.4 lua5.4-socket
# Copy script
WORKDIR /app
COPY scripts/auto-boot-ollama-host.lua .
#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 ["lua5.4", "/app/auto-boot-ollama-host.lua"]