diff --git a/Dockerfile b/Dockerfile index afe05884..5b65698a 100755 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,10 @@ ENV PATH="/opt/venv/bin:$PATH" COPY . ${INSTALL_DIR}/ +# Install gcc and other necessary build tools +RUN apk update \ + && apk add --no-cache build-base + RUN pip install requests paho-mqtt scapy cron-converter pytz json2table dhcp-leases pyunifi speedtest-cli chardet python-nmap dnspython pycryptodome \ && bash -c "find ${INSTALL_DIR} -type d -exec chmod 750 {} \;" \ diff --git a/Dockerfile.debian b/Dockerfile.debian index b501cc00..76c3267f 100755 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -29,6 +29,10 @@ COPY --chmod=775 --chown=${USER_ID}:${USER_GID} . ${INSTALL_DIR}/ # ❗ IMPORTANT - if you modify this file modify the /install/install_dependecies.debian.sh file as well ❗ +# Install gcc and other necessary build tools +RUN apt-get update \ + && apt-get install -y build-essential + RUN apt-get install -y \ tini snmp ca-certificates curl libwww-perl arp-scan perl apt-utils cron sudo \ nginx-light php php-cgi php-fpm php-sqlite3 php-curl sqlite3 dnsutils net-tools \ diff --git a/install/install_dependencies.debian.sh b/install/install_dependencies.debian.sh index 6c88a2c3..4b60a5f9 100755 --- a/install/install_dependencies.debian.sh +++ b/install/install_dependencies.debian.sh @@ -12,6 +12,9 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi +# Install gcc and other necessary build tools +apt-get update && apt-get install -y build-essential + # Install dependencies apt-get install -y \ tini snmp ca-certificates curl libwww-perl arp-scan perl apt-utils cron sudo \