summaryrefslogtreecommitdiffhomepage
path: root/test/runtimes/php/Dockerfile
diff options
context:
space:
mode:
authorSamantha Sample <samsample@google.com>2019-07-29 14:15:51 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-29 14:17:11 -0700
commit8e8b6096116eb490b438a53061195f737d4eca8b (patch)
treeee0af6ddec5c18483fe2bc783382b62760e751ee /test/runtimes/php/Dockerfile
parent09be87bbee1e4338b488f22199d0f079ffec8d0e (diff)
Move runtimes tests to appropriate directory.
PiperOrigin-RevId: 260577765
Diffstat (limited to 'test/runtimes/php/Dockerfile')
-rw-r--r--test/runtimes/php/Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/runtimes/php/Dockerfile b/test/runtimes/php/Dockerfile
new file mode 100644
index 000000000..1f8959b50
--- /dev/null
+++ b/test/runtimes/php/Dockerfile
@@ -0,0 +1,29 @@
+FROM ubuntu:bionic
+ENV LANG_VER=7.3.6
+ENV LANG_NAME=PHP
+
+RUN apt-get update && apt-get install -y \
+ autoconf \
+ automake \
+ bison \
+ build-essential \
+ curl \
+ libtool \
+ libxml2-dev \
+ re2c
+
+WORKDIR /root
+RUN curl -o go.tar.gz https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
+RUN tar -zxf go.tar.gz
+
+RUN curl -o php-${LANG_VER}.tar.gz https://www.php.net/distributions/php-${LANG_VER}.tar.gz
+RUN tar -zxf php-${LANG_VER}.tar.gz
+ENV LANG_DIR=/root/php-${LANG_VER}
+
+WORKDIR ${LANG_DIR}
+RUN ./configure
+RUN make
+
+COPY proctor-php.go ${LANG_DIR}
+
+ENTRYPOINT ["/root/go/bin/go", "run", "proctor-php.go"]