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 <noreply@anthropic.com>
This commit is contained in:
chaloemphong
2026-11-22 14:45:43 +07:00
parent fd33d5c987
commit 32c121a85a
+1 -1
View File
@@ -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