Remove packages folder from production image to prevent dev piece auto-detection

The packages folder was causing Activepieces to auto-detect pieces and try
to build them with NX, which fails in production since the NX workspace
files are not present. The pre-built pieces in dist/packages/pieces/ are
sufficient for production.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-20 12:20:52 -05:00
parent 07f49cb457
commit ab87a4b621

View File

@@ -109,7 +109,8 @@ COPY --from=build /usr/src/app/dist/packages/engine/ ./dist/packages/engine/
COPY --from=build /usr/src/app/dist/packages/server/ ./dist/packages/server/ COPY --from=build /usr/src/app/dist/packages/server/ ./dist/packages/server/
COPY --from=build /usr/src/app/dist/packages/shared/ ./dist/packages/shared/ COPY --from=build /usr/src/app/dist/packages/shared/ ./dist/packages/shared/
COPY --from=build /usr/src/app/dist/packages/pieces/ ./dist/packages/pieces/ COPY --from=build /usr/src/app/dist/packages/pieces/ ./dist/packages/pieces/
COPY --from=build /usr/src/app/packages ./packages # Note: Don't copy /packages folder - it triggers dev piece auto-detection
# The pre-built pieces in dist/packages/pieces/ are sufficient for production
# Copy frontend files to Nginx document root # Copy frontend files to Nginx document root
COPY --from=build /usr/src/app/dist/packages/react-ui /usr/share/nginx/html/ COPY --from=build /usr/src/app/dist/packages/react-ui /usr/share/nginx/html/