forked from crazyxman/simdjson_php
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-dev
More file actions
21 lines (17 loc) · 683 Bytes
/
docker-dev
File metadata and controls
21 lines (17 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:24.04
RUN apt-get update && \
apt-get install -y curl gcc xz-utils libxml2-dev pkg-config make autoconf g++ valgrind && \
rm -rf /var/lib/apt/lists/
ARG PHP_VERSION=8.4.16
RUN curl -L https://www.php.net/distributions/php-$PHP_VERSION.tar.xz | tar xJf - && \
cd php-$PHP_VERSION && \
./configure --enable-debug --without-sqlite3 --disable-pdo --disable-dom --disable-simplexml --disable-phar --without-pdo-sqlite && \
make -j$(nproc) && \
make install && \
rm -rf /php-$PHP_VERSION
COPY . /tmp/simdjson
RUN cd /tmp/simdjson && \
phpize && \
./configure && \
make -j$(nproc) && \
make test TESTS="-m --show-diff -j$(nproc)"