forked from maaximal/jottadocker
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
34 lines (27 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Name: jottacloud
# Description: This dockerfile is used to build the docker image for a containerized jotta backup client, with the latest version of official jotta-cli preloaded at the time of build.
# Author: BlueT - Matthew Lien - 練喆明
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors="[email protected]"
VOLUME [ "/data" ]
ENV JOTTA_TOKEN="**None**" \
JOTTA_DEVICE="**docker-jottacloud**" \
JOTTA_SCANINTERVAL="12h"\
LOCALTIME="Asia/Taipei" \
STARTUP_TIMEOUT=15 \
JOTTAD_SYSTEMD=0
RUN apt-get update -y &&\
apt-get upgrade -y &&\
apt-get -y install curl apt-transport-https ca-certificates expect &&\
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" | tee /etc/apt/sources.list.d/jotta-cli.list &&\
apt-get update -y &&\
apt-get install jotta-cli psmisc -y &&\
apt-get autoremove -y --purge &&\
apt-get clean &&\
rm -rf /var/lib/lists/*
COPY entrypoint.sh /src/
WORKDIR /src
RUN chmod +x entrypoint.sh
EXPOSE 14443
ENTRYPOINT [ "/src/entrypoint.sh" ]