This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
JOTTA_TOKEN="**None**" \
|
JOTTA_TOKEN="None" \
|
||||||
JOTTA_DEVICE="docker-jottacloud" \
|
JOTTA_DEVICE="docker-jottacloud" \
|
||||||
JOTTA_SCANINTERVAL="12h" \
|
JOTTA_SCANINTERVAL="12h" \
|
||||||
LOCALTIME="Asia/Taipei" \
|
LOCALTIME="Asia/Taipei" \
|
||||||
@@ -11,13 +11,15 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|||||||
|
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|
||||||
# Base packages + Jottacloud repo
|
# Base pkgs + korrekt Jottacloud GPG-key (binær) og repo
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get upgrade -y && \
|
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
curl apt-transport-https ca-certificates expect tzdata psmisc gnupg && \
|
ca-certificates curl gnupg tzdata psmisc expect && \
|
||||||
curl -fsSL https://repo.jotta.cloud/public.asc -o /usr/share/keyrings/jotta.gpg && \
|
install -m 0755 -d /etc/apt/keyrings && \
|
||||||
echo "deb [signed-by=/usr/share/keyrings/jotta.gpg] https://repo.jotta.cloud/debian debian main" > /etc/apt/sources.list.d/jotta-cli.list && \
|
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 update -y && \
|
||||||
apt-get install -y --no-install-recommends jotta-cli && \
|
apt-get install -y --no-install-recommends jotta-cli && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|||||||
Reference in New Issue
Block a user