We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 261737f commit 68243caCopy full SHA for 68243ca
Dockerfile
@@ -0,0 +1,8 @@
1
+FROM php:7.4-cli-buster
2
+
3
+RUN apt-get -y update \
4
+ && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install libffi-dev \
5
+ && docker-php-ext-configure ffi --with-ffi \
6
+ && docker-php-ext-install ffi \
7
+ && apt-get clean \
8
+ && rm -rf /tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
readme.md
@@ -21,6 +21,12 @@ Usage:
21
22
php -dffi.enable=1 ackermann.php
23
24
+ or:
25
26
+ docker build -t php-ffi .
27
+ docker run -it --rm -v $(pwd):/code php-ffi php /code/ackermann.php
28
29
30
Example output:
31
32
PHP
@@ -36,7 +42,7 @@ Example output:
36
42
Requirements:
37
43
38
44
Go package (https://golang.org/dl/)
39
- PHP 7.4+
45
+ PHP 7.4+ with FFI extension enabled
40
46
41
47
Notes:
48
0 commit comments