From e57f9770a6a174fc1b03268943ba0444759f7bef Mon Sep 17 00:00:00 2001 From: carsten Date: Fri, 31 Oct 2025 09:09:17 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d6b894..6eadc5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive \ - JOTTA_TOKEN="**None**" \ + JOTTA_TOKEN="None" \ JOTTA_DEVICE="docker-jottacloud" \ JOTTA_SCANINTERVAL="12h" \ LOCALTIME="Asia/Taipei" \ @@ -11,13 +11,15 @@ ENV DEBIAN_FRONTEND=noninteractive \ VOLUME ["/data"] -# Base packages + Jottacloud repo +# Base pkgs + korrekt Jottacloud GPG-key (binær) og repo RUN apt-get update -y && \ - apt-get upgrade -y && \ apt-get install -y --no-install-recommends \ - curl apt-transport-https ca-certificates expect tzdata psmisc gnupg && \ - curl -fsSL https://repo.jotta.cloud/public.asc -o /usr/share/keyrings/jotta.gpg && \ - echo "deb [signed-by=/usr/share/keyrings/jotta.gpg] https://repo.jotta.cloud/debian debian main" > /etc/apt/sources.list.d/jotta-cli.list && \ + ca-certificates curl gnupg tzdata psmisc expect && \ + install -m 0755 -d /etc/apt/keyrings && \ + curl -fsSL https://repo.jotta.cloud/public.gpg -o /etc/apt/keyrings/jotta.gpg && \ + chmod 0644 /etc/apt/keyrings/jotta.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/jotta.gpg] https://repo.jotta.cloud/debian debian main" \ + > /etc/apt/sources.list.d/jotta-cli.list && \ apt-get update -y && \ apt-get install -y --no-install-recommends jotta-cli && \ rm -rf /var/lib/apt/lists/*