From 5a8eed74be218e9e94bc8ea4c2f9e1acda982645 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Mon, 12 Apr 2021 19:05:10 +0300 Subject: [PATCH] Fixed octane image --- Dockerfile.octane | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile.octane b/Dockerfile.octane index 4c84c6e..9f6ad7c 100644 --- a/Dockerfile.octane +++ b/Dockerfile.octane @@ -1,4 +1,5 @@ -FROM php:8.0-alpine +# https://hub.docker.com/r/phpswoole/swoole +FROM phpswoole/swoole:4.6-php8.0-alpine RUN apk --update add \ wget \ @@ -27,7 +28,7 @@ RUN apk --update add \ libxslt-dev \ libgcrypt-dev && \ pecl channel-update pecl.php.net && \ - pecl install mcrypt redis-5.3.4 swoole && \ + pecl install mcrypt redis-5.3.4 && \ docker-php-ext-install \ mysqli \ mbstring \ @@ -46,11 +47,11 @@ RUN apk --update add \ xsl && \ docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ && \ docker-php-ext-install gd && \ - docker-php-ext-enable redis swoole && \ + docker-php-ext-enable redis && \ rm -rf /tmp/pear && \ rm /var/cache/apk/* -COPY . /var/www/html +COPY . /var/www ENTRYPOINT ["php", "-d", "variables_order=EGPCS", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=80"]