Skip to content

Commit

Permalink
Fixed octane image
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Apr 12, 2021
1 parent 4a20910 commit 5a8eed7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile.octane
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down Expand Up @@ -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 \
Expand All @@ -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"]

Expand Down

0 comments on commit 5a8eed7

Please sign in to comment.