From f5720c8fa187e07ae4ea998d731e7e354744ea22 Mon Sep 17 00:00:00 2001 From: manuel_boissiere Date: Sat, 16 May 2026 10:37:15 +0100 Subject: [PATCH] Fix EACCES on bun install in frontend dev image WORKDIR creates /app owned by root. USER node is set before bun install, so bun cannot create node_modules in /app and the build fails with: EACCES: Permission denied: could not create the "node_modules" directory (mkdir) Chown /app to node in the same RUN that installs bun, then proceed. COPY --chown=node:node already handles the files, but the directory itself needs to be writable too. Repro: `make dev` on a fresh clone. --- frontend/Dockerfile.dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/Dockerfile.dev b/frontend/Dockerfile.dev index 5fb13b1..daa1db8 100644 --- a/frontend/Dockerfile.dev +++ b/frontend/Dockerfile.dev @@ -2,7 +2,7 @@ FROM node:22-alpine WORKDIR /app -RUN npm install -g bun +RUN npm install -g bun && chown node:node /app COPY --chown=node:node package.json bun.lock ./ USER node