This commit is contained in:
14
Dockerfile
14
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/*
|
||||
|
||||
Reference in New Issue
Block a user