-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
ARG PHP_VERSION | ||
ARG ALPINE_VERSION | ||
|
||
FROM hyperf/hyperf:${PHP_VERSION}-alpine-v${ALPINE_VERSION}-dev | ||
FROM phpswoole/php:${PHP_VERSION}-alpine | ||
|
||
LABEL maintainer="Swoole Team <[email protected]>" version="1.0" license="Apache2" | ||
|
||
ARG PHP_VERSION | ||
|
||
COPY . /opt/www | ||
COPY . /swoole | ||
|
||
WORKDIR /opt/www | ||
WORKDIR /swoole | ||
|
||
RUN set -ex \ | ||
&& phpize \ | ||
&& ./configure --enable-openssl --enable-swoole-curl \ | ||
&& make -s -j$(nproc) && make install \ | ||
&& echo "extension=swoole.so" > /etc/php$(echo $PHP_VERSION | sed 's/\.//g')/conf.d/50_swoole.ini \ | ||
# check | ||
&& php -v \ | ||
&& php -m \ | ||
&& php --ri swoole \ | ||
&& echo -e "\033[42;37m Build Completed :).\033[0m\n" | ||
&& make -s -j$(nproc) && make install | ||
|
||
RUN echo "extension=swoole.so" > "/usr/local/etc/php/conf.d/swoole.ini" | ||
RUN php -v | ||
RUN php -m | ||
RUN php --ri swoole | ||
RUN echo -e "\033[42;37m Build Completed :).\033[0m\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters