From: Michael Wallner Date: Wed, 5 Jan 2022 15:22:49 +0000 (+0100) Subject: Dockerfile X-Git-Tag: v0.1.0~48 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1a66cf5d817412417ff5e17cfdae76c3b7b6b6ef;p=awesomized%2Fext-ion Dockerfile docker build --tag m6w6/php-ion . && \ docker run --rm m6w6/php-ion -r 'var_dump(ion\unserialize("123d0"));' --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c1d45a1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM php:8.1-cli + +RUN apt-get update -qy \ + && DEBIAN_FRONTEND=noninteractive \ + apt-get install -qy cmake git \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /tmp +COPY . ion/ +RUN cd ion && \ + phpize && \ + ./configure && \ + make clean && \ + make -j $(nproc) && \ + make install INSTALL=install && \ + docker-php-ext-enable ion && \ + rm -rf /tmp/ion