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 # Copy script
WORKDIR /app WORKDIR /app
COPY scripts/auto-boot-ollama-host.sh /usr/local/bin/auto-boot-ollama-host.sh COPY scripts/auto-boot-ollama-host.lua .
RUN chmod +x /usr/local/bin/auto-boot-ollama-host.sh #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) # Environment defaults (can be overridden by compose/Komodo)
ENV CONTAINER_NAME=paperless-ai \ ENV CONTAINER_NAME=paperless-ai \
@@ -17,4 +18,4 @@ ENV CONTAINER_NAME=paperless-ai \
OLLAMA_PORT=11434 \ OLLAMA_PORT=11434 \
SINCE=0s SINCE=0s
ENTRYPOINT ["/usr/local/bin/auto-boot-ollama-host.sh"] ENTRYPOINT ["lua5.4", "/app/auto-boot-ollama-host.lua"]