mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-12 08:34:15 +03:00
Initial commit
This commit is contained in:
45
Dockerfile
Normal file
45
Dockerfile
Normal file
@@ -0,0 +1,45 @@
|
||||
FROM php:8.3-cli
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
# dependencies
|
||||
RUN apt-get install -y ntp whois dnsutils ipcalc
|
||||
|
||||
# composer
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \
|
||||
&& chmod 755 /usr/bin/composer
|
||||
|
||||
# pcntl
|
||||
RUN docker-php-ext-configure pcntl --enable-pcntl \
|
||||
&& docker-php-ext-install pcntl
|
||||
|
||||
# pecl/ev
|
||||
RUN pecl install -o -f ev \
|
||||
&& docker-php-ext-enable ev
|
||||
|
||||
# zip
|
||||
RUN apt-get install -y libzip-dev zlib1g-dev zip \
|
||||
&& docker-php-ext-install zip
|
||||
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# php.ini
|
||||
ADD .docker/php/docker-php.ini /usr/local/etc/php/conf.d/docker-php-enable-jit.ini
|
||||
ADD .docker/php/docker-php-disable-assertions.ini /usr/local/etc/php/conf.d/docker-php-disable-assertions.ini
|
||||
ADD .docker/php/docker-php-enable-jit.ini /usr/local/etc/php/conf.d/docker-php-enable-jit.ini
|
||||
|
||||
RUN apt-get clean
|
||||
|
||||
COPY ./src/ /app/src/
|
||||
COPY ./config/ /app/config/
|
||||
COPY ./storage/ /app/storage/
|
||||
COPY ./composer.json /app/
|
||||
COPY ./index.php /app/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN composer install --no-interaction
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD [ "php", "./index.php" ]
|
Reference in New Issue
Block a user