aws-samples/aws-do-docker ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Docker container project that I can use locally and also send to AWS without changing the whole setup.

I want one set of scripts to build the image, run it, check its status, open a shell inside it, view logs, test it, stop it, and push it to a registry. It should support switching the deployment target so the same container can run on my machine or on AWS on EC2, ECS, EKS, Fargate, AWS Batch, or Lambda. Please include a working sample container with a small app, startup script, and tests so I can see the full flow end to end.

Make it easy to customize later for a microservice, a job, or a serverless function. If you need to check current AWS or Docker details, look up the latest docs online. I’d like the whole thing to be usable as a starting point for my own project, with clear scripts and sensible defaults.