Skip to content

Commit

Permalink
Changed goaccess installation
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Sep 9, 2024
1 parent 366614e commit e3b875d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM bitnami/python

# Install goaccess tool
RUN apt-get update && \
apt-get install nano goaccess -y
apt-get install vim -y

# Install aws-cli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
Expand All @@ -13,6 +13,13 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2
# Verify the installation
RUN aws --version

RUN wget https://tar.goaccess.io/goaccess-1.5.5.tar.gz \
tar -xzvf goaccess-1.5.5.tar.gz
cd goaccess-1.5.5/
./configure --enable-utf8
make
make install

# Install python dependencies
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt
Expand All @@ -34,4 +41,4 @@ COPY metrics_prom.py /app/
COPY create_index.py /app/

COPY dbip-country-lite-2024.mmdb /app/
COPY goaccess.conf /etc/goaccess/
COPY goaccess.conf /etc/goaccess/

0 comments on commit e3b875d

Please sign in to comment.