@@ -12,33 +12,39 @@ LABEL maintainer="aptalca"
12
12
# environment settings
13
13
ARG DEBIAN_FRONTEND="noninteractive"
14
14
ENV HOME="/config" \
15
- TMPDIR=/run/duplicati-temp
15
+ TMPDIR=/run/duplicati-temp \
16
+ DUPLICATI__SERVER_DATAFOLDER=/config \
17
+ DUPLICATI__WEBSERVICE_PORT=8200 \
18
+ DUPLICATI__WEBSERVICE_INTERFACE=any \
19
+ DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=* \
20
+ DUPLICATI__DISABLE_DB_ENCRYPTION=true \
21
+ DUPLICATI__REQUIRE_DB_ENCRYPTION_KEY=true
16
22
17
23
RUN \
18
24
echo "**** install packages ****" && \
19
25
apt-get update && \
20
26
apt-get install -y \
21
- libicu74 \
22
- unzip && \
27
+ libicu74 \
28
+ unzip && \
23
29
echo "**** install duplicati ****" && \
24
30
if [ -z ${DUPLICATI_RELEASE+x} ]; then \
25
- DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
26
- | jq -r 'first(.[] | select(.tag_name | contains("canary"))) | .tag_name'); \
31
+ DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
32
+ | jq -r 'first(.[] | select(.tag_name | contains("canary"))) | .tag_name'); \
27
33
fi && \
28
34
duplicati_url=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"${DUPLICATI_RELEASE}" |jq -r '.assets[].browser_download_url' |grep 'linux-arm64-gui.zip$') || \
29
- duplicati_url="https://updates.duplicati.com/canary/duplicati-${DUPLICATI_RELEASE}-linux-arm64-gui.zip" && \
35
+ duplicati_url="https://updates.duplicati.com/canary/duplicati-${DUPLICATI_RELEASE}-linux-arm64-gui.zip" && \
30
36
curl -fso \
31
- /tmp/duplicati.zip -L \
32
- "${duplicati_url}" && \
37
+ /tmp/duplicati.zip -L \
38
+ "${duplicati_url}" && \
33
39
unzip -q /tmp/duplicati.zip -d /app && \
34
40
mv /app/duplicati* /app/duplicati && \
35
41
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
36
42
echo "**** cleanup ****" && \
37
43
apt-get clean && \
38
44
rm -rf \
39
- /tmp/* \
40
- /var/lib/apt/lists/* \
41
- /var/tmp/*
45
+ /tmp/* \
46
+ /var/lib/apt/lists/* \
47
+ /var/tmp/*
42
48
43
49
# copy local files
44
50
COPY root/ /
0 commit comments