-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 895 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 895 Bytes
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
FROM alpine:3.8.4
ARG commit=329927a6b8d2a4f7581b0493c54fc48bc99ecf79
WORKDIR /opt
RUN \
echo \
http://nl.alpinelinux.org/alpine/v3.8/main >> /etc/apk/repositories && \
echo \
http://nl.alpinelinux.org/alpine/v3.8/community >> /etc/apk/repositories && \
apk add --no-cache --update \
bash curl perl perl-doc perl-netaddr-ip perl-text-csv_xs unzip xtables-addons && \
curl -L \
-o /tmp/GeoLite2xtables.zip \
https://github.com/sander1/GeoLite2xtables/archive/${commit}.zip && \
unzip -o \
/tmp/GeoLite2xtables.zip && \
mv \
GeoLite2xtables-${commit} GeoLite2xtables && \
mkdir \
/xt_build && \
rm \
/tmp/GeoLite2xtables.zip
COPY xt_build.sh download_geolite2.sh /opt/GeoLite2xtables/
RUN chmod +x /opt/GeoLite2xtables/xt_build.sh /opt/GeoLite2xtables/download_geolite2.sh
VOLUME /xt_build
ENTRYPOINT ["/opt/GeoLite2xtables/xt_build.sh"]