mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 20:04:45 +01:00
20 lines
581 B
Docker
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=* |