Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed May 11, 2020
1 parent a04797b commit 3ad25a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ FROM php:7.4-cli
COPY . /app
WORKDIR /app

RUN 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 \
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 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer global require hirak/prestissimo \
&& composer install -o --no-dev
&& composer install -o --no-dev \
&& composer clear

VOLUME ["/app/sessions"]

Expand Down
1 change: 1 addition & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function startLoggedInSession(string $sessionName): Promise
function() use ($sessionName) {
if (static::isSessionLoggedIn($this->instances[$sessionName])) {
yield $this->instances[$sessionName]->start();
$this->instances[$sessionName]->unsetEventHandler();
Loop::defer(function() use($sessionName) {
while (!empty($this->instances[$sessionName]) && static::isSessionLoggedIn($this->instances[$sessionName])) {
try {
Expand Down

0 comments on commit 3ad25a7

Please sign in to comment.