-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.aarch64
43 lines (38 loc) · 1.19 KB
/
Dockerfile.aarch64
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
35
36
37
38
39
40
41
42
43
# syntax=docker/dockerfile:1
FROM ghcr.io/imagegenius/baseimage-alpine:arm64v8-3.19
# set version label
ARG BUILD_DATE
ARG VERSION
ARG DUPLICATI_RELEASE
LABEL build_version="ImageGenius Version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="hydazz"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
ca-certificates-mono \
libgdiplus \
mono-reference-assemblies-facades \
rclone \
sqlite-libs \
terminus-font && \
echo "**** install duplicati ****" && \
mkdir -p /app/duplicati && \
if [ -z ${DUPLICATI_RELEASE} ]; then \
DUPLICATI_RELEASE=$(curl -sL "https://api.github.com/repos/duplicati/duplicati/releases" | \
jq -r 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'); \
fi && \
curl -o \
/tmp/duplicati.zip -L \
"$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/${DUPLICATI_RELEASE} | \
jq -r '.assets[].browser_download_url' | grep '.zip$' | grep -v signatures)" && \
unzip \
/tmp/duplicati.zip -d \
/app/duplicati && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 8200
VOLUME /config /source /backups