-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (43 loc) · 1.02 KB
/
Dockerfile
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
FROM debian:stretch
RUN apt-get update && apt-get -y upgrade && \
apt-get -y install \
build-essential \
curl \
cmake \
dh-autoreconf \
git-core \
gnutls-dev \
jq \
libcurl3-dev \
libsasl2-dev \
libtool \
libgcrypt20-dev \
libssl-dev \
libmicrohttpd-dev \
libunistring-dev \
libmosquitto-dev \
pkg-config \
subversion \
sudo \
uuid-dev \
uuid-runtime && \
mkdir /tmp/build && \
cd /tmp/build && \
curl -L --fail -O https://raw.github.com/volkszaehler/vzlogger/master/install.sh && \
touch /etc/systemd/system/vzlogger.service && \
bash -x ./install.sh && \
cd / && rm -rf /tmp/build && \
export SUDO_FORCE_REMOVE=yes && \
apt-get -y purge \
build-essential \
cmake \
dh-autoreconf \
git-core \
libtool \
pkg-config \
subversion \
sudo && \
apt-get -y autoremove && \
apt-get clean
USER nobody
ENTRYPOINT [ "/usr/local/bin/vzlogger" ]