From 0369992cdd213e973d4fbae0fcb29235a0b5e29a Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Sun, 26 Apr 2026 13:36:13 +0100 Subject: [PATCH] fix(docker): add bash + curl to runtime image for Dokploy scheduled tasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dokploy wraps scheduled-task commands in `bash -c "..."` and the daily reconcile cron uses curl. node:20-alpine ships neither — first manual "Run now" failed with `exec: "bash": executable file not found in $PATH`. apk add --no-cache bash curl adds ~5MB to the runtime image; trivial cost for the cron use case. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 54b1438..5102ee0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,11 @@ RUN npm ci --ignore-scripts && npx nuxt prepare COPY . . RUN npm run build -# Production stage — only the self-contained .output is needed +# Production stage — only the self-contained .output is needed. +# bash + curl are added so Dokploy scheduled tasks (which wrap commands in +# `bash -c "..."`) can run; alpine ships only ash and has no curl by default. FROM node:20-alpine +RUN apk add --no-cache bash curl WORKDIR /app COPY --from=builder /app/.output .output