“Yes — AWS Amplify can deploy a Dockerfile-based backend, but there’s an important distinction between Amplify Hosting and the older Amplify CLI container/Fargate integration.”
+ Dockerfile-based backend deployment via Gen 1 container/Fargate feature
“Amplify Gen 1 / Amplify CLI has a serverless containers feature that can take a Dockerfile (or Docker Compose) and deploy it to AWS Fargate.”
+ Container workflow builds image, stores in ECR, runs on Fargate
“The Amplify CLI's container workflow builds the Docker image, puts it in ECR, and runs it on Fargate.”
+ Frontend/static/SSR hosting
“Amplify Hosting itself is primarily for frontend/static/SSR hosting.”
− Amplify Hosting does not accept arbitrary Dockerfiles as backend containers
“Its normal deployment flow does not take an arbitrary Dockerfile and run it as your backend container.”
− Not a general-purpose Docker hosting platform for Gen 2
“If you're starting a new Amplify Gen 2 project, I would not interpret Amplify as a general-purpose Docker hosting platform.”
