diff options
Diffstat (limited to 'Dockerfile.env')
-rw-r--r-- | Dockerfile.env | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Dockerfile.env b/Dockerfile.env index 5c00d32..e30663f 100644 --- a/Dockerfile.env +++ b/Dockerfile.env @@ -3,7 +3,9 @@ FROM ubuntu:18.04 ENV RAGEL_VERSION 6.10 ENV HYPERSCAN_VERSION 5.2.1 ENV GO_VERSION 1.14.1 -ENV PATH /usr/local/go/bin:$PATH +ENV NODE_VERSION v12.18.2 +ENV NODE_DISTRO linux-x64 +ENV PATH /usr/local/lib/nodejs/node-$NODE_VERSION-$NODE_DISTRO/bin:/usr/local/go/bin:$PATH # Install tools and libraries RUN apt-get update && apt-get install -y git wget make cmake build-essential python3 libpcap-dev pkg-config @@ -22,7 +24,7 @@ RUN wget http://www.colm.net/files/ragel/ragel-$RAGEL_VERSION.tar.gz -P /tmp && # Get Hyperscan source and install it RUN wget https://github.com/intel/hyperscan/archive/v$HYPERSCAN_VERSION.tar.gz -P /tmp && \ - tar -C /tmp/ -xzf /tmp/v$HYPERSCAN_VERSION.tar.gz && \ + tar -C /tmp/ -xzf /tmp/v$HYPERSCAN_VERSION.tar.gz && \ cd /tmp/hyperscan-$HYPERSCAN_VERSION/ && \ mkdir build && \ cd build && \ @@ -36,6 +38,11 @@ RUN wget https://github.com/intel/hyperscan/archive/v$HYPERSCAN_VERSION.tar.gz - RUN wget https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz -P /tmp && \ tar -C /usr/local -xzf /tmp/go$GO_VERSION.linux-amd64.tar.gz +# Get NodeJs and install it +RUN wget https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_DISTRO.tar.xz -P /tmp/ && \ + mkdir -p /usr/local/lib/nodejs && \ + tar -C /usr/local/lib/nodejs -xJf /tmp/node-$NODE_VERSION-$NODE_DISTRO.tar.xz + # Remove source files RUN rm -rf /tmp/* |