docker-ddclient/Dockerfile
2017-02-10 16:45:50 +01:00

58 lines
1.1 KiB
Docker
Raw Permalink 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.5
MAINTAINER saarg
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# package versions
ARG DDCLIENT_VER="3.8.3"
# install build time dependencies
RUN \
apk add --no-cache --virtual=build-dependencies \
bzip2 \
curl \
gcc \
make \
tar \
wget && \
# install runtime dependencies
apk add --no-cache \
inotify-tools \
perl \
perl-digest-sha1 \
perl-io-socket-ssl \
perl-json && \
# install Perl cpan modules not in alpine
curl -L http://cpanmin.us | perl - App::cpanminus && \
cpanm JSON::Any && \
# install ddclient
mkdir -p \
/tmp/ddclient && \
curl -o \
/tmp/ddclient.tar.bz2 -L \
"http://vorboss.dl.sourceforge.net/project/ddclient/ddclient/ddclient-${DDCLIENT_VER}/ddclient-${DDCLIENT_VER}.tar.bz2" && \
tar xf \
/tmp/ddclient.tar.bz2 -C \
/tmp/ddclient --strip-components=1 && \
install -Dm755 /tmp/ddclient/ddclient /usr/bin/ && \
# cleanup
apk del --purge \
build-dependencies && \
rm -rf \
/config/.cpanm \
/root/.cpanm \
/tmp/*
# copy local files
COPY root/ /
# ports and volumes
VOLUME /config