Closed Heelie closed 11 months ago
# Heelie @ MacBook-Pro in ~/data/github/phpy on git:main x [12:59:20] $ docker build -t heelie/phpy:php8.3-py3.11 . [+] Building 20.3s (10/10) FINISHED docker:orbstack => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 503B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/php:8.3.0-fpm 0.0s => [1/5] FROM docker.io/library/php:8.3.0-fpm 0.0s => [internal] load build context 0.0s => => transferring context: 1.63MB 0.0s => CACHED [2/5] WORKDIR /opt 0.0s => [3/5] ADD . . 0.0s => [4/5] RUN sed -i 's#http://deb.debian.org#https://mirrors.aliyun.com#g' /etc/apt/sources.list.d/debian.sources && apt update && apt install -y python3 python3-dev 9.1s => [5/5] RUN docker-php-source extract && phpize && ./configure --with-python-dir=/usr && make && make install && docker-php-ext-enable phpy && docker-php-source delete 10.8s => exporting to image 0.2s => => exporting layers 0.2s => => writing image sha256:c115b7bf66f34943a07107afc0595350cf405303bd185a1532457d261e6ff827 0.0s => => naming to docker.io/heelie/phpy:php8.3-py3.11 0.0s
# Heelie @ MacBook-Pro in ~/data/github/phpy on git:main x [12:59:45] $ docker run --rm -it heelie/phpy:php8.3-py3.11 php --ri phpy
phpy
phpy support => enabled
构建
# Heelie @ MacBook-Pro in ~/data/github/phpy on git:main x [12:59:20] $ docker build -t heelie/phpy:php8.3-py3.11 . [+] Building 20.3s (10/10) FINISHED docker:orbstack => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 503B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/php:8.3.0-fpm 0.0s => [1/5] FROM docker.io/library/php:8.3.0-fpm 0.0s => [internal] load build context 0.0s => => transferring context: 1.63MB 0.0s => CACHED [2/5] WORKDIR /opt 0.0s => [3/5] ADD . . 0.0s => [4/5] RUN sed -i 's#http://deb.debian.org#https://mirrors.aliyun.com#g' /etc/apt/sources.list.d/debian.sources && apt update && apt install -y python3 python3-dev 9.1s => [5/5] RUN docker-php-source extract && phpize && ./configure --with-python-dir=/usr && make && make install && docker-php-ext-enable phpy && docker-php-source delete 10.8s => exporting to image 0.2s => => exporting layers 0.2s => => writing image sha256:c115b7bf66f34943a07107afc0595350cf405303bd185a1532457d261e6ff827 0.0s => => naming to docker.io/heelie/phpy:php8.3-py3.11 0.0s
执行
# Heelie @ MacBook-Pro in ~/data/github/phpy on git:main x [12:59:45] $ docker run --rm -it heelie/phpy:php8.3-py3.11 php --ri phpy
phpy
phpy support => enabled