blob: 272b491b46f53612930b06cf9846f9bb740d5438 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Compile the proctor binary.
FROM golang:1.12 AS golang
ADD ["proctor/", "/go/src/proctor/"]
RUN ["go", "build", "-o", "/proctor", "/go/src/proctor"]
FROM ubuntu:bionic
RUN apt-get update && apt-get install -y \
autoconf \
automake \
bison \
build-essential \
curl \
libtool \
libxml2-dev \
re2c
WORKDIR /root
ARG VERSION 7.3.6
RUN curl -o https://www.php.net/distributions/php-${VERSION}.tar.gz
RUN tar -zxf php-${VERSION}.tar.gz
WORKDIR /root/php-${VERSION}
RUN ./configure
RUN make
COPY --from=golang /proctor /proctor
ENTRYPOINT ["/proctor", "--runtime=php"]
|