fix(dashboard): bundle header logo with next/image for reliable staging

Made-with: Cursor
This commit is contained in:
Talal Sharabi
2026-03-30 11:58:07 +04:00
parent 14d2597722
commit 3fbe607ed7
3 changed files with 9 additions and 4 deletions

View File

@@ -37,10 +37,10 @@ ENV NEXT_TELEMETRY_DISABLED=1
RUN addgroup --system --gid 1001 nodejs && \
adduser --system --uid 1001 nextjs
# Copy necessary files
COPY --from=builder /app/public ./public
# Standalone first, then static assets; public last so it is not overwritten by any nested folder in standalone.
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
USER nextjs