docker-ddclient/Dockerfile
2018-08-22 14:09:35 +01:00

56 lines
1.2 KiB
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/alpine:3.8
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="saarg"
# package versions
ARG DDCLIENT_VER="3.9.0"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
bzip2 \
curl \
gcc \
make \
tar \
wget && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
inotify-tools \
perl \
perl-digest-sha1 \
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 ****" && \
mkdir -p \
/tmp/ddclient && \
curl -o \
/tmp/ddclient.tar.gz -L \
"https://sourceforge.net/projects/ddclient/files/ddclient/ddclient-${DDCLIENT_VER}/ddclient-${DDCLIENT_VER}.tar.gz/download" && \
tar xf \
/tmp/ddclient.tar.gz -C \
/tmp/ddclient --strip-components=1 && \
install -Dm755 /tmp/ddclient/ddclient /usr/bin/ && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/config/.cpanm \
/root/.cpanm \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
VOLUME /config