From 0a0d050998e8a4f90b37e1761a2d376579a55ee1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 14 Apr 2026 03:09:38 +0200 Subject: [PATCH] Dockerfile: add build tools for argon2 native compile argon2 requires node-gyp + python3 + g++ + make to build its C extension. Added as a virtual .build-deps package so it's compiled during npm install, then purged to keep the Alpine image slim. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 33e77d5..b87c66e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,10 @@ WORKDIR /app RUN apk add --no-cache ffmpeg curl COPY package.json ./ -RUN npm install --omit=dev +# argon2 compiles native code via node-gyp — needs python3/make/g++ at build time +RUN apk add --no-cache --virtual .build-deps python3 make g++ \ + && npm install --omit=dev \ + && apk del .build-deps COPY . .