github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/images/runtimes/nodejs12.4.0/Dockerfile (about)

     1  FROM ubuntu:bionic
     2  RUN apt-get update && apt-get install -y \
     3    curl \
     4    dumb-init \
     5    g++ \
     6    make \
     7    python
     8  
     9  WORKDIR /root
    10  ARG VERSION=v12.4.0
    11  RUN curl -o node-${VERSION}.tar.gz https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.gz
    12  RUN tar -zxf node-${VERSION}.tar.gz
    13  
    14  WORKDIR /root/node-${VERSION}
    15  RUN ./configure
    16  RUN make
    17  RUN make test-build
    18  
    19  # Including dumb-init emulates the Linux "init" process, preventing the failure
    20  # of tests involving worker processes.
    21  ENTRYPOINT ["/usr/bin/dumb-init"]