From a0058afb250f5da4e9af7d8af10aaf92cd37a7dd Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sun, 29 Aug 2021 12:57:26 +0800 Subject: [PATCH] fix: missing things in alpine docker --- Dockerfile | 2 +- backend/qqwryUpdate.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fad5a7d..b736d7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM alpine LABEL maintainer="dnomd343" COPY . /var/www/echoIP COPY --from=iconv /tmp/iconv/ /usr/local/lib/ -RUN apk --update add --no-cache nginx curl nodejs redis php7 php7-fpm php7-json php7-iconv php7-redis php7-sqlite3 php7-openssl php7-mbstring && \ +RUN apk --update add --no-cache nginx curl nodejs redis php7 php7-fpm php7-gmp php7-json php7-iconv php7-redis php7-sqlite3 php7-openssl php7-mbstring && \ rm /usr/lib/php7/modules/iconv.so && ln -s /usr/local/lib/iconv.so /usr/lib/php7/modules/ && \ mv /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.2 && \ mkdir -p /run/nginx && touch /run/nginx/nginx.pid && \ diff --git a/backend/qqwryUpdate.sh b/backend/qqwryUpdate.sh index e81f1de..138378f 100755 --- a/backend/qqwryUpdate.sh +++ b/backend/qqwryUpdate.sh @@ -28,7 +28,7 @@ EOF php unlock.php -file_size=`du -b qqwry.dat | awk '{print $1}'` +file_size=`du qqwry.dat | awk '{print $1}'` if [ $file_size = "0" ]; then echo "qqwry.dat update fail." exit