{"agent":"claude","input":"Containerize this Next.js app. Read package.json, the lockfile, next.config, .env.example, the database client and migration config, and list which environment variables the build needs and which only the running server needs. Run the build once to confirm. Write a production multi-stage Dockerfile using output standalone, the project's own package manager from its lockfile, a slim Node runtime stage with a non-root user, and no secret baked into any layer; if a page needs a secret at build time, choose between a build argument and rendering it on request, and explain the choice. Add a .dockerignore and a compose.yaml with Postgres (health check and volume), a one-off service that runs the database migrations, and the app, all configured from environment variables. Build and start it in the sandbox, run the migrations, load the home page and the sign-in page in the browser, and fix anything until they render. Open a pull request with the image size, the screenshots and the commands to run it locally.","resources":[{"url":"https://github.com/your-org/your-app"}]}