{"agent":"claude","input":"Add a Dockerfile for the Medusa backend in this pnpm monorepo. Read package.json, pnpm-workspace.yaml, pnpm-lock.yaml headers, turbo.json, apps/backend/package.json, apps/backend/medusa-config.ts, apps/backend/.env.template, apps/backend/.gitignore, apps/backend/jest.config.js, the root and backend README files and .github/workflows first. Follow Medusa's deployment guide: build with medusa build, run npm install, predeploy and start inside .medusa/server, and support MEDUSA_WORKER_MODE server and worker with DISABLE_MEDUSA_ADMIN and MEDUSA_BACKEND_URL read in medusa-config.ts alongside REDIS_URL. Write a three-stage Dockerfile on node 22 that installs only the backend's dependencies with pnpm filters, a .dockerignore, an entrypoint that runs migrations only when RUN_MIGRATIONS is true, and a docker-compose.yml with postgres 15, redis 7, a server and a worker. Install Docker in the sandbox, build the image, run PostgreSQL, Redis, a server and a worker container, check /health and /app, run the unit tests, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}