Skip to content

Commit

Permalink
Merge pull request allinurl#1507 from gam2046/master
Browse files Browse the repository at this point in the history
GeoIP for docker image
  • Loading branch information
allinurl authored Jul 25, 2019
2 parents fcb84a8 + c231dd2 commit ddf17b0
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,15 @@ RUN apk add --no-cache \
ncurses-static \
rsync \
tzdata \
libmaxminddb-dev \
libressl-dev \
xz

# Environment
ENV CC clang
ENV LIBRESSL_VER 2.9.1

# LibreSSL
WORKDIR /libressl
RUN rsync -q rsync://mirror.leaseweb.com/openbsd/LibreSSL/libressl-${LIBRESSL_VER}.tar.gz .
RUN tar zxf libressl-${LIBRESSL_VER}.tar.gz --strip 1
RUN cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
RUN make && make install

# GoAccess
COPY . /goaccess
WORKDIR /goaccess
RUN autoreconf -fiv
RUN CFLAGS="-O3 -static" LIBS="$(pkg-config --libs openssl)" ./configure --prefix="" --enable-utf8 --with-openssl
RUN CC="clang" CFLAGS="-O3 -static" LIBS="$(pkg-config --libs openssl)" ./configure --prefix="" --enable-utf8 --with-openssl --enable-geoip=mmdb
RUN make && make DESTDIR=/dist install

# Time Zone
Expand Down

0 comments on commit ddf17b0

Please sign in to comment.