Add .dockerignore and update Dockerfile and compose.yaml for SSH key handling

This commit is contained in:
Bastian (BaM)
2025-09-14 13:28:35 +02:00
parent ee29740c6b
commit bda835e9f8
3 changed files with 26 additions and 6 deletions

View File

@@ -13,6 +13,8 @@ RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
ARG SSH_PRIVATE_KEY
ARG SSH_PUBLIC_KEY
ARG OLLAMA_HOST
ARG OLLAMA_PORT
ARG SINCE
RUN echo "$SSH_PRIVATE_KEY" > /root/.ssh/id_rsa && \
echo "$SSH_PUBLIC_KEY" > /root/.ssh/id_rsa.pub && \
chmod 600 /root/.ssh/id_rsa && \
@@ -30,8 +32,8 @@ COPY scripts/auto-boot-ollama-host.lua .
# Environment defaults (can be overridden by compose/Komodo)
ENV CONTAINER_NAME=paperless-ai \
OLLAMA_HOST=192.168.222.12 \
OLLAMA_PORT=11434 \
SINCE=0s
OLLAMA_HOST=${OLLAMA_HOST} \
OLLAMA_PORT=${OLLAMA_PORT} \
SINCE=${SINCE:-0s}
ENTRYPOINT ["lua5.4", "/app/auto-boot-ollama-host.lua"]