blob: d17924b6288c9edc65f1535b294b544eb21d3025 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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
# Including dumb-init emulates the Linux "init" process, preventing the failure
# of tests involving worker processes.
ENTRYPOINT ["/usr/bin/dumb-init"]
|