File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # Stage 1
2+ FROM ubuntu:20.04 AS base
3+ ARG ENABLE_FIPS
4+ ARG DYNAMIC_LINK
5+ ARG SHARED_OPENSSL_INCLUDES
6+ ARG SHARED_OPENSSL_LIBNAME
7+ ARG SHARED_OPENSSL_LIBPATH
8+
9+ # Set non-interactive mode to avoid prompts during installation
10+ ENV DEBIAN_FRONTEND=noninteractive
11+
12+ # Install necessary dependencies
13+ RUN apt-get update
14+ RUN apt-get install -y software-properties-common
15+ RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
16+ RUN apt-get update && apt-get install -y build-essential python3 python3-distutils g++-10 make curl git pkg-config libssl-dev libffi-dev libgmp-dev libtool autoconf automake cmake wget xz-utils unzip vim
17+ RUN rm -rf /var/lib/apt/lists/*
18+
19+ # Set g++ 10 as the default
20+ RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
21+
22+ # Copy local Node.js source into the image
23+ WORKDIR /usr/src/node
24+ COPY . .
25+
26+ RUN ./configure --openssl-is-fips
27+ RUN ./configure --shared-openssl
28+
29+ RUN ./configure --experimental-enable-pointer-compression
30+ RUN make -j4 install DESTDIR=./node-install
31+
32+ CMD ["bash"]
You can’t perform that action at this time.
0 commit comments