Fix Docker build: move entrypoint out of excluded deploy/ dir

.dockerignore excludes deploy/ entirely. The entrypoint script lived
there, so the COPY in Stage 3 failed with "not found". Move it to the
project root (alongside Dockerfile) where the build context includes it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ginnoir
2026-05-06 18:46:36 -05:00
co-authored by Claude Sonnet 4.6
parent 01945fbd0a
commit bb3a770cf3
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/public ./public
# drizzle-orm + postgres which Next.js standalone already traces in.
COPY --from=builder --chown=nextjs:nodejs /app/drizzle ./drizzle
COPY --from=builder --chown=nextjs:nodejs /app/scripts/migrate.mjs ./scripts/migrate.mjs
COPY --chown=nextjs:nodejs deploy/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
COPY --chown=nextjs:nodejs docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
USER nextjs