TelegramApiServer/Dockerfile
Alexander Pankratov fe8c97612b Dockerfile fix
2020-03-11 02:49:01 +03:00

20 lines
581 B
Docker

FROM php:7.4-cli
COPY . /app
WORKDIR /app
RUN echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/php.ini \
&& pecl install apcu ev \
&& docker-php-ext-enable apcu ev \
&& apt-get update && apt-get upgrade -y \
&& apt-get install git zip vim nano -y \
&& apt-get autoremove -y \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer global require hirak/prestissimo \
&& composer install -o --no-dev
VOLUME ["/app/sessions"]
EXPOSE 9503
ENTRYPOINT php server.php --docker -s=*