-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.aarch64
35 lines (28 loc) · 1.07 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
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
ARG BUILD_DATE
ARG VERSION
ARG ADGUARDHOMESYNC_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thespad"
ENV \
HOME=/config
RUN \
mkdir -p /app/adguardhome-sync && \
if [ -z ${ADGUARDHOMESYNC_RELEASE+x} ]; then \
ADGUARDHOMESYNC_RELEASE=$(curl -sX GET "https://api.github.com/repos/bakito/adguardhome-sync/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
echo "*** Installing AdGuardHome Sync ***" && \
curl -o \
/tmp/adguardhomesync.tar.gz -L \
"https://github.com/bakito/adguardhome-sync/releases/download/${ADGUARDHOMESYNC_RELEASE}/adguardhome-sync_${ADGUARDHOMESYNC_RELEASE#v}_linux_arm64.tar.gz" && \
tar xzf \
/tmp/adguardhomesync.tar.gz -C \
/app/adguardhome-sync/ && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "*** Cleaning Up ***" && \
rm /tmp/adguardhomesync.tar.gz
COPY /root /
EXPOSE 8080
VOLUME /config