From 57fabffe605d953b4a4d7e05032401cbf1ab2d14 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Sun, 19 Oct 2025 20:11:28 -0500 Subject: [PATCH] fix(docker): include Panda CSS styled-system in production image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The styled-system directory containing generated Panda CSS was being created during build but not copied to the production image, causing all Panda CSS classes to be undefined at runtime. This fix copies the generated styled-system directory from the builder stage to the production image, ensuring styles.css is available. Fixes missing CSS definitions for classes like fs_xl, font_bold, text_blue.400 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8d54edb6..e3abc82d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,6 +59,9 @@ RUN adduser --system --uid 1001 nextjs COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next ./apps/web/.next COPY --from=builder --chown=nextjs:nodejs /app/apps/web/public ./apps/web/public +# Copy Panda CSS generated styles +COPY --from=builder --chown=nextjs:nodejs /app/apps/web/styled-system ./apps/web/styled-system + # Copy server files (compiled from TypeScript) COPY --from=builder --chown=nextjs:nodejs /app/apps/web/server.js ./apps/web/ COPY --from=builder --chown=nextjs:nodejs /app/apps/web/dist ./apps/web/dist