Skip to content

Commit 9b6483c

Browse files
Update Dockerfile.Node24 to Ubuntu 22.04 for Python 3.10
Node.js v24 requires Python 3.9+, Ubuntu 20.04 only has Python 3.8. Ubuntu 22.04 includes Python 3.10 which meets this requirement. Co-Authored-By: Claude (global.anthropic.claude-opus-4-5-20251101-v1:0) <noreply@anthropic.com>
1 parent c0524c4 commit 9b6483c

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Dockerfile.Node24

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
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
66

77
# Install necessary dependencies
8+
# Ubuntu 22.04 has Python 3.10 which meets Node.js v24 requirement (3.9+)
89
RUN apt-get update
910
RUN apt-get install -y software-properties-common
10-
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
11-
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
11+
RUN apt-get update && apt-get install -y build-essential python3 python3-distutils g++ make curl git pkg-config libssl-dev libffi-dev libgmp-dev libtool autoconf automake cmake wget xz-utils unzip vim
1212
RUN rm -rf /var/lib/apt/lists/*
1313

14-
# Set g++ 10 as the default
15-
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
16-
1714
# Copy local Node.js source into the image
1815
WORKDIR /usr/src/node
1916
COPY . .

0 commit comments

Comments
 (0)