mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

This removes the --enable-opcache/--disable-opcache configure switch. OPcache is now always builtin. The default value of opcache.enable and opcache.enable_cli is unchanged. RFC: https://wiki.php.net/rfc/make_opcache_required Closes GH-18961. Co-authored-by: Tim Düsterhus <tim@tideways-gmbh.com>
15 lines
816 B
Text
15 lines
816 B
Text
# Force this to build with arm64 even when the host architecture is different.
|
|
# This requires that cross-compilation support be enabled with the steps in https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
|
|
FROM --platform=arm64 ubuntu:20.04
|
|
RUN apt-get update -y
|
|
# DEBIAN_FRONTEND=noninteractive is needed to stop the tzdata installation from hanging.
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get install -y tzdata
|
|
RUN apt-get install -y pkg-config build-essential autoconf bison re2c \
|
|
libxml2-dev libsqlite3-dev
|
|
|
|
ADD . /php-src/
|
|
WORKDIR /php-src
|
|
RUN ./buildconf
|
|
# Compile a minimal debug build. --enable-debug adds runtime assertions and is slower than regular builds.
|
|
RUN ./configure --enable-debug --disable-all && make clean && make -j$(nproc)
|