-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (39 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
53 lines (39 loc) · 1.13 KB
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
FROM ubuntu:18.04
MAINTAINER Michael Hempel, hemmi@xmsoft.de
ENV LAST_UPDATE=2020-03-25
RUN apt-get update && \
apt-get upgrade -y
# Tools necessary for installing and configuring Ubuntu
RUN apt-get install -y \
tzdata \
apt-utils \
locales
# Timezone
RUN echo "Europe/Berlin" | tee /etc/timezone && \
ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# Locale with UTF-8 support
RUN echo de_DE.UTF-8 UTF-8 >> /etc/locale.gen && \
locale-gen && \
update-locale LC_ALL=de_DE.UTF-8 LANG=de_DE.UTF-8
ENV LANG de_DE.UTF-8
ENV LANGUAGE de_DE:de
ENV LC_ALL de_DE.UTF-8
# expect and perl
RUN apt-get install -y \
telnet \
curl \
expect \
perl \
make \
gcc \
libjson-perl && \
rm -rf /var/lib/apt/lists/*
RUN cpan install JSON::Parse
ENV fahquery /opt/fahclientstats/fahquery.sh
ENV config /opt/fahclientstats/config.json
ENV fahstats /opt/fahclientstats/fahstats.pl
VOLUME /opt/fahclientstats
COPY fahquery.sh /opt/fahclientstats/fahquery.sh
COPY fahstats.pl /opt/fahclientstats/fahstats.pl
CMD ["/opt/fahclientstats/fahstats.pl"]