forked from linuxserver/docker-ddclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.armhf
61 lines (56 loc) · 1.66 KB
/
Dockerfile.armhf
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.17
# set version label
ARG BUILD_DATE
ARG VERSION
ARG DDCLIENT_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="saarg"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
gcc \
make \
wget && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
bind-tools \
inotify-tools \
perl \
perl-digest-sha1 \
perl-io-socket-inet6 \
perl-io-socket-ssl \
perl-json && \
echo "***** install perl modules ****" && \
curl -L http://cpanmin.us | perl - App::cpanminus && \
cpanm \
Data::Validate::IP \
JSON::Any && \
echo "**** install ddclient ****" && \
if [ -z ${DDCLIENT_VERSION+x} ]; then \
DDCLIENT_VERSION=$(curl -sX GET "https://api.github.com/repos/ddclient/ddclient/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/tmp/ddclient && \
curl -o \
/tmp/ddclient.tar.gz -L \
"https://github.com/ddclient/ddclient/archive/${DDCLIENT_VERSION}.tar.gz" && \
tar xf \
/tmp/ddclient.tar.gz -C \
/tmp/ddclient --strip-components=1 && \
cp /tmp/ddclient/ddclient.in /usr/bin/ddclient.in && \
ln -s /usr/bin/ddclient.in /usr/bin/ddclient && \
mkdir -p /etc/ddclient/ && \
cp /tmp/ddclient/sample-get-ip-from-fritzbox /etc/ddclient/get-ip-from-fritzbox && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/config/.cpanm \
/root/.cpanm \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
VOLUME /config