From 46a3136f12adff06ef087705d1885601bd24a79b Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Fri, 21 Dec 2018 07:04:27 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EDockerfile=E2=80=9C=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fea38a1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +# Builds a goaccess image from the current working directory: +FROM alpine:edge + +COPY . /goaccess +WORKDIR /goaccess + +ARG build_deps="build-base ncurses-dev autoconf automake git gettext-dev" +ARG runtime_deps="tini ncurses libintl gettext openssl-dev" + +RUN apk update && \ + apk add -u $runtime_deps $build_deps && \ + apk add geoip-dev && apk add libmaxminddb-dev && apk add zlib-dev && apk add bzip2-dev && \ + tar xzf tokyocabinet-1.4.48.tar.gz && cd tokyocabinet-1.4.48 && \ + ./configure && make && make install && cd ../ && \ + autoreconf -fiv && \ + ./configure --enable-utf8 --with-openssl --enable-geoip=mmdb --enable-tcb=btree && \ + make && \ + make install && \ + apk del $build_deps && \ + rm -rf /var/cache/apk/* /tmp/goaccess/* /goaccess + +VOLUME /srv/data +VOLUME /srv/logs +VOLUME /srv/report +EXPOSE 7890 + +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["goaccess", "--no-global-config", "--config-file=/srv/data/goaccess.conf"] \ No newline at end of file