-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_alpine
80 lines (72 loc) · 1.85 KB
/
Dockerfile_alpine
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM digrouz/alpine-s6:latest
LABEL maintainer "DI GREGORIO Nicolas <nicolas.digregorio@gmail.com>"
ARG DDCLIENT_VERSION='4.0.0'
### Environment variables
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
DDCLIENT_VERSION="${DDCLIENT_VERSION}"
# Copy config files
COPY root/ /
### Install Application
RUN set -x && \
apk upgrade --no-cache && \
apk add --no-cache --virtual=build-deps \
autoconf \
automake \
curl \
expat-dev \
g++ \
gcc \
git \
make \
libxml2-dev \
openssl-dev \
perl-dev \
wget \
&& \
apk add --no-cache --virtual=run-deps \
ca-certificates \
curl \
mailx \
openssl \
perl \
perl-http-daemon \
perl-io-socket-ssl \
perl-io-socket-inet6 \
perl-json \
perl-test-mockmodule \
perl-test-tcp \
perl-test-warnings \
perl-uri \
ssmtp \
&& \
curl -SsL https://cpanmin.us/ -o /usr/local/bin/cpanm && \
chmod +x /usr/local/bin/cpanm && \
cpanm Data::Validate::IP && \
curl -SsL https://github.com/ddclient/ddclient/archive/v${DDCLIENT_VERSION}.tar.gz -o /tmp/ddclient.tar.gz && \
tar xzf /tmp/ddclient.tar.gz -C /opt && \
cd /opt/ddclient-${DDCLIENT_VERSION} && \
./autogen && \
./configure \
--bindir=/opt/ddclient \
--sysconfdir=/etc \
--runstatedir=/var/run/ddclient \
--localstatedir=/var \
&& \
make && \
make install && \
apk del --no-cache --purge \
build-deps && \
rm -rf /opt/ddclient-${DDCLIENT_VERSION} \
/usr/local/bin/cpanm \
/root/.cpan \
/tmp/* \
/var/cache/apk/* \
/var/tmp/*
### Volume
### Expose ports
### Running User: not used, managed by docker-entrypoint.sh
USER root
### Start ddclient
ENTRYPOINT ["/init"]