Skip to content

Commit 3814757

Browse files
revert FIPS Dockerfile to Ubuntu 22.04
Ubuntu 22.04 is required for production and matches the v20 FIPS build. The earlier 403 errors were transient rate-limiting, not a fundamental issue. Co-Authored-By: Claude (global.anthropic.claude-opus-4-5-20251101-v1:0) <noreply@anthropic.com>
1 parent cf4884d commit 3814757

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

Dockerfile.Node20fips

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Stage 1
2+
FROM ubuntu:22.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 --shared-openssl --experimental-enable-pointer-compression --openssl-conf-name 'openssl_conf'
27+
RUN make -j4 install DESTDIR=./node-install
28+
29+
CMD ["bash"]

Dockerfile.Node22fips

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1
2-
FROM ubuntu:20.04 AS base
2+
FROM ubuntu:22.04 AS base
33

44
# Set non-interactive mode to avoid prompts during installation
55
ENV DEBIAN_FRONTEND=noninteractive

0 commit comments

Comments
 (0)