Skip to content

Commit 87cbcb7

Browse files
Add unstable reqwuest
1 parent c48753f commit 87cbcb7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker/build_and_push_base.Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@
1212
# Frontend builder stage - use native platform to avoid QEMU issues with esbuild
1313
FROM --platform=$BUILDPLATFORM node:18-slim AS frontend-builder
1414

15+
# Install build dependencies that may be needed for native modules
16+
RUN apt-get update \
17+
&& apt-get install -y build-essential python3 \
18+
&& apt-get clean \
19+
&& rm -rf /var/lib/apt/lists/*
20+
1521
COPY src/frontend /tmp/src/frontend
1622
WORKDIR /tmp/src/frontend
1723
# Increase memory and disable concurrent builds to avoid esbuild crashes on emulated architectures
18-
RUN npm install \
24+
RUN RUSTFLAGS='--cfg reqwest_unstable' npm install \
1925
&& NODE_OPTIONS="--max-old-space-size=8192" JOBS=1 npm run build
2026

2127
# Use a Python image with uv pre-installed

0 commit comments

Comments
 (0)