mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-03-24 08:52:08 +01:00
20 lines
484 B
Docker
20 lines
484 B
Docker
FROM php:8.2.13-cli-bullseye
|
|
LABEL authors="Heelie"
|
|
|
|
RUN sed -i 's#http://deb.debian.org#https://mirrors.aliyun.com#g' /etc/apt/sources.list
|
|
RUN apt update && apt install -y python3 python3-dev
|
|
|
|
WORKDIR /opt
|
|
COPY . /opt/phpy
|
|
|
|
# 编译安装
|
|
RUN cd /opt/phpy && docker-php-source extract && \
|
|
phpize && \
|
|
./configure --with-python-config=/usr/bin/python3-config && \
|
|
make && make install && \
|
|
docker-php-ext-enable phpy && \
|
|
docker-php-source delete
|
|
|
|
CMD ["bash"]
|
|
|