From 8a79612dd27ffa259e616844b48366d92f8df921 Mon Sep 17 00:00:00 2001 From: Rekryt Date: Sun, 18 Jan 2026 16:24:10 +0300 Subject: [PATCH] refactor: geoip in Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ad3320e..863bb77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,10 @@ RUN pecl install -o -f ev \ RUN apt-get install -y libzip-dev zlib1g-dev zip \ && docker-php-ext-install zip +# geoip +RUN git clone https://github.com/v2fly/geoip.git \ + && cd geoip && go build . + RUN rm -rf /var/lib/apt/lists/* # php.ini @@ -41,9 +45,6 @@ WORKDIR /app RUN composer install --no-interaction -RUN git clone https://github.com/v2fly/geoip.git \ - && cd geoip && go build . - EXPOSE 8080 CMD [ "php", "./index.php" ]