Skip to content

Commit 8edb197

Browse files
committed
fix(container): switch from Alpine to Ubuntu for better native compilation compatibility
- Replace node:22-alpine3.19 with node:22-bookworm-slim - Use apt-get instead of apk for package management - Install compatible build tools for Ubuntu environment - Fixes C++ compilation issues in containerized native builds - Ensures compatibility between CI and container environments
1 parent 2ce5e79 commit 8edb197

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
# Multi-stage build for optimized containerized testing
2-
FROM node:22-alpine3.19 AS base
2+
FROM node:22-bookworm-slim AS base
33

44
# Install build dependencies in a single layer with minimal packages
5-
RUN apk add --no-cache \
5+
RUN apt-get update && apt-get install -y --no-install-recommends \
66
python3 \
77
make \
88
g++ \
99
gcc \
10-
musl-dev \
11-
linux-headers \
12-
libgcc \
13-
libstdc++ \
14-
paxctl \
10+
linux-libc-dev \
11+
libc6-dev \
12+
libgcc-s1 \
13+
libstdc++6 \
1514
curl \
1615
bash \
17-
&& rm -rf /var/cache/apk/*
16+
&& rm -rf /var/lib/apt/lists/*
1817

1918
# Install pnpm globally
2019
RUN npm install -g pnpm --no-audit --no-fund

0 commit comments

Comments
 (0)