Update Dockerfile to use lua script as entrypoint and remove unused shell script

This commit is contained in:
Bastian (BaM)
2025-09-14 10:54:16 +02:00
parent 90b4fa9e7e
commit 5f53bea04a

View File

@@ -8,8 +8,9 @@ RUN apk add --no-cache \
# 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
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 \
@@ -17,4 +18,4 @@ ENV CONTAINER_NAME=paperless-ai \
OLLAMA_PORT=11434 \
SINCE=0s
ENTRYPOINT ["/usr/local/bin/auto-boot-ollama-host.sh"]
ENTRYPOINT ["lua5.4", "/app/auto-boot-ollama-host.lua"]