From 32c121a85af07c87b80ab76215a1fe0e385ef473 Mon Sep 17 00:00:00 2001 From: chaloemphong Date: Sun, 22 Nov 2026 14:45:43 +0700 Subject: [PATCH] Copy the full scripts/ directory into the runtime image Only cron-runner.mjs was copied, so scripts/create-user.mjs (needed to bootstrap the first login account on a fresh deploy) was missing from the container entirely. Co-Authored-By: Claude Sonnet 5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1239093..6e9dd35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ COPY --from=build /app/prisma ./prisma # Prisma 7 reads datasource.url from this file, not schema.prisma — required # for `prisma migrate deploy` at container start. COPY --from=build /app/prisma.config.ts ./prisma.config.ts -COPY scripts/cron-runner.mjs ./scripts/cron-runner.mjs +COPY --from=build /app/scripts ./scripts RUN mkdir -p /app/.data/uploads && chown -R node:node /app USER node EXPOSE 3000