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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user