-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.octane
59 lines (54 loc) · 1.34 KB
/
Dockerfile.octane
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ARG BASE_TAG=4.6-php8.1-alpine
# https://hub.docker.com/r/phpswoole/swoole
FROM phpswoole/swoole:$BASE_TAG
RUN apk --update add \
wget \
curl \
build-base \
composer \
nodejs \
npm \
libmcrypt-dev \
libxml2-dev \
pcre-dev \
zlib-dev \
autoconf \
oniguruma-dev \
openssl \
openssl-dev \
freetype-dev \
libjpeg-turbo-dev \
jpeg-dev \
libpng-dev \
imagemagick-dev \
imagemagick \
postgresql-dev \
libzip-dev \
gettext-dev \
libxslt-dev \
libgcrypt-dev && \
pecl channel-update pecl.php.net && \
pecl install mcrypt redis-5.3.4 && \
docker-php-ext-install \
mysqli \
mbstring \
pdo \
pdo_mysql \
xml \
pcntl \
bcmath \
pdo_pgsql \
zip \
intl \
gettext \
soap \
sockets \
xsl && \
docker-php-ext-configure gd --with-freetype=/usr/lib/ --with-jpeg=/usr/lib/ && \
docker-php-ext-install gd && \
docker-php-ext-enable redis && \
rm -rf /tmp/pear && \
rm /var/cache/apk/*
WORKDIR /var/www/html
ENTRYPOINT ["php", "-d", "variables_order=EGPCS", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=80"]
EXPOSE 80