Download src/php/php-src/ext/opcache/jit/Dockerfile.arm64.example from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/jit/Dockerfile.arm64.example
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/jit/Dockerfile.arm64.example
-
curl -L -o Dockerfile.arm64.example https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/jit/Dockerfile.arm64.example
833 Bytes
| # 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 --enable-opcache && make clean && make -j$(nproc) | |