forked from swoole/library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (22 loc) · 853 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM phpswoole/swoole
RUN pecl update-channels
RUN pecl install redis-stable
RUN docker-php-ext-enable redis
RUN docker-php-ext-install mysqli
RUN docker-php-ext-enable mysqli
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-enable pdo_mysql
RUN echo "swoole.enable_library=off" >> /usr/local/etc/php/conf.d/docker-php-ext-swoole.ini && \
{ \
echo '[supervisord]'; \
echo 'user = root'; \
echo ''; \
echo '[program:wordpress]'; \
echo 'command = php /var/www/examples/fastcgi/proxy/wordpress.php'; \
echo 'user = root'; \
echo 'autostart = true'; \
echo 'stdout_logfile=/proc/self/fd/1'; \
echo 'stdout_logfile_maxbytes=0'; \
echo 'stderr_logfile=/proc/self/fd/1'; \
echo 'stderr_logfile_maxbytes=0'; \
} > /etc/supervisor/service.d/wordpress.conf