We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c48753f commit 87cbcb7Copy full SHA for 87cbcb7
1 file changed
docker/build_and_push_base.Dockerfile
@@ -12,10 +12,16 @@
12
# Frontend builder stage - use native platform to avoid QEMU issues with esbuild
13
FROM --platform=$BUILDPLATFORM node:18-slim AS frontend-builder
14
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
+
21
COPY src/frontend /tmp/src/frontend
22
WORKDIR /tmp/src/frontend
23
# Increase memory and disable concurrent builds to avoid esbuild crashes on emulated architectures
-RUN npm install \
24
+RUN RUSTFLAGS='--cfg reqwest_unstable' npm install \
25
&& NODE_OPTIONS="--max-old-space-size=8192" JOBS=1 npm run build
26
27
# Use a Python image with uv pre-installed
0 commit comments