mirror of
https://github.com/rekryt/iplist.git
synced 2026-02-26 01:08:31 +03:00
refactor: geoip in Dockerfile
This commit is contained in:
@@ -21,6 +21,10 @@ RUN pecl install -o -f ev \
|
|||||||
RUN apt-get install -y libzip-dev zlib1g-dev zip \
|
RUN apt-get install -y libzip-dev zlib1g-dev zip \
|
||||||
&& docker-php-ext-install 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/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# php.ini
|
# php.ini
|
||||||
@@ -41,9 +45,6 @@ WORKDIR /app
|
|||||||
|
|
||||||
RUN composer install --no-interaction
|
RUN composer install --no-interaction
|
||||||
|
|
||||||
RUN git clone https://github.com/v2fly/geoip.git \
|
|
||||||
&& cd geoip && go build .
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
CMD [ "php", "./index.php" ]
|
CMD [ "php", "./index.php" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user