v1.0.23
This commit is contained in:
1 parent
0bb10cabb9
commit
2027c9d44c
1 file changed
+6
-4
+6
-4
@@ -84,11 +84,13 @@ RUN npm ci --ignore-scripts \
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production dependencies only (rebuilds native addons like better-sqlite3)
|
# Production dependencies only
|
||||||
RUN rm -rf node_modules \
|
# Preserve better-sqlite3 native addon (no prebuilds exist for Node 24 ABI 137)
|
||||||
|
RUN cp -r node_modules/better-sqlite3/build /tmp/better-sqlite3-build \
|
||||||
|
&& rm -rf node_modules \
|
||||||
&& npm ci --omit=dev --ignore-scripts \
|
&& npm ci --omit=dev --ignore-scripts \
|
||||||
&& npm rebuild better-sqlite3 argon2 \
|
&& cp -r /tmp/better-sqlite3-build node_modules/better-sqlite3/build \
|
||||||
&& rm -rf node_modules/@types
|
&& rm -rf node_modules/@types /tmp/better-sqlite3-build
|
||||||
|
|
||||||
# Build Go collector
|
# Build Go collector
|
||||||
FROM --platform=$BUILDPLATFORM golang:1.25.8 AS go-builder
|
FROM --platform=$BUILDPLATFORM golang:1.25.8 AS go-builder
|
||||||
|
|||||||
Reference in new issue
Block a user