2020-03-09 00:42:17 +01:00
|
|
|
FROM php:7.4-cli
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2020-05-11 23:14:38 +02:00
|
|
|
RUN apt-get update && apt-get upgrade -y \
|
|
|
|
&& apt-get install apt-utils -y \
|
|
|
|
&& apt-get install git zip vim nano wget libzip-dev libgmp-dev libevent-dev libssl-dev libnghttp2-dev libffi-dev -y \
|
|
|
|
&& docker-php-ext-install sockets zip gmp pcntl bcmath ffi \
|
|
|
|
&& PHP_OPENSSL=yes pecl install apcu ev event \
|
|
|
|
&& docker-php-ext-enable apcu ev event \
|
|
|
|
&& docker-php-source delete \
|
|
|
|
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
|
2020-03-09 00:42:17 +01:00
|
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
2020-03-11 00:49:01 +01:00
|
|
|
&& composer global require hirak/prestissimo \
|
2020-05-11 23:14:38 +02:00
|
|
|
&& composer install -o --no-dev \
|
|
|
|
&& composer clear
|
2020-03-09 00:42:17 +01:00
|
|
|
|
2020-03-09 22:38:56 +01:00
|
|
|
VOLUME ["/app/sessions"]
|
2020-03-09 00:42:17 +01:00
|
|
|
|
|
|
|
EXPOSE 9503
|
|
|
|
|
2020-03-11 00:20:14 +01:00
|
|
|
ENTRYPOINT php server.php --docker -s=*
|