blob: 26f68b4878793a096f4dc2021c91105984c96e54 (
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
28
|
# 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 \
curl \
dumb-init \
g++ \
make \
python
WORKDIR /root
ARG VERSION=v12.4.0
RUN curl -o node-${VERSION}.tar.gz https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.gz
RUN tar -zxf node-${VERSION}.tar.gz
WORKDIR /root/node-${VERSION}
RUN ./configure
RUN make
RUN make test-build
COPY --from=golang /proctor /proctor
# Including dumb-init emulates the Linux "init" process, preventing the failure
# of tests involving worker processes.
ENTRYPOINT ["/usr/bin/dumb-init", "/proctor", "--runtime=nodejs"]
|