aboutsummaryrefslogtreecommitdiff
path: root/awstats/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'awstats/Dockerfile')
-rw-r--r--awstats/Dockerfile66
1 files changed, 0 insertions, 66 deletions
diff --git a/awstats/Dockerfile b/awstats/Dockerfile
deleted file mode 100644
index 18a679a..0000000
--- a/awstats/Dockerfile
+++ /dev/null
@@ -1,66 +0,0 @@
1FROM alpine:edge
2LABEL maintainer="Mike Crute <mike@crute.us>"
3
4
5# TODO: Is this really needed?
6# apk add perl-net-ssleay
7
8RUN set -euxo pipefail; \
9 # Install build dependencies
10 apk add --virtual .build-deps \
11 build-base \
12 git \
13 perl-app-cpanminus \
14 perl-dev \
15 wget \
16 ; \
17 apk add \
18 curl \
19 ; \
20 \
21 # Install awstats
22 git clone https://github.com/eldy/awstats.git /opt/awstats; \
23 cpanm -n Net::IP Net::DNS; \
24 mkdir /etc/awstats; \
25 \
26 # Install MaxMind GeoIP2 library
27 apk add perl-net-ssleay; \
28 cpanm -n \
29 Data::Validate::IP \
30 HTTP::Headers \
31 HTTP::Request \
32 HTTP::Response \
33 HTTP::Status \
34 JSON::MaybeXS \
35 List::SomeUtils \
36 LWP::Protocol::https \
37 LWP::UserAgent \
38 MaxMind::DB::Metadata \
39 MaxMind::DB::Reader \
40 Moo \
41 Moo::Role \
42 namespace::clean \
43 Params::Validate \
44 Path::Class \
45 Sub::Quote \
46 Test::Fatal \
47 Test::Number::Delta \
48 Throwable::Error \
49 Try::Tiny URI \
50 ; \
51 \
52 git clone https://github.com/maxmind/GeoIP2-perl.git /tmp/GeoIP2-perl; \
53 cd /tmp/GeoIP2-perl; \
54 perl Makefile.PL; \
55 make all install; \
56 mkdir /geoip; \
57 rm -rf /tmp/GeoIP2-perl; \
58 \
59 # Cleanup
60 apk del .build-deps; \
61 rm -rf /root/.cpanm/ /var/cache/apk/*;
62
63ADD main /serve
64ADD build.sh /build
65
66CMD [ "/serve" ]