-
Like this support arm64v8 https://github.com/swoole/docker-swoole
PS:alpine有arm64v8的镜像,https://hub.docker.com/r/arm64v8/alpine |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
嗯。这里确实可以支持一下。 |
Beta Was this translation helpful? Give feedback.
-
同求!!!最近在折腾树莓派 |
Beta Was this translation helpful? Give feedback.
-
You can use image Here is an example to create a Hyperf image: FROM phpswoole/swoole:4.6.1-php7.4-alpine
ARG timezone
ARG APP_ENV=local
ARG APP_NAME=demo
ENV TIMEZONE=${timezone:-"America/Los_Angeles"} \
APP_ENV=$APP_ENV \
APP_NAME=$APP_NAME \
SCAN_CACHEABLE=(true)
COPY . /var/www
RUN set -ex \
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
&& docker-php-ext-install pdo_mysql \
&& ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo "${TIMEZONE}" > /etc/timezone \
&& { \
echo "memory_limit=1G"; \
echo "date.timezone=${TIMEZONE}"; \
} | tee /usr/local/etc/php/conf.d/overrides.ini \
&& echo "swoole.use_shortname = 'Off'" >> /usr/local/etc/php/conf.d/docker-php-ext-swoole.ini \
&& composer install --no-dev -nq --no-progress && php ./bin/hyperf.php \
&& composer clearcache \
&& rm -rf /var/cache/apk/* /tmp/* /usr/share/man /usr/src/php.tar.xz* $HOME/.composer/*-old.phar
EXPOSE 9501
ENTRYPOINT ["php", "/var/www/bin/hyperf.php", "start"] |
Beta Was this translation helpful? Give feedback.
You can use image
phpswoole/swoole
with Hyperf. This image supports multiple architectures, including linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8, and linux/ppc64le.Here is an example to create a Hyperf image: