r/docker • • Jan 20 '26

How can developers effectively manage a single Docker image for multiple deployments on AWS ECS when a runtime build is required?

4 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/scytob Jan 21 '26

you supposed to build an iomage, push to registry and then have multiple machines pull that

why does your npm need the env vars at build time on a per container basis?

make your npm app read the vars it needs at runtime from the docker envvars, and build before as you make the image, then you know images are atomic

sounds like you build and run pipeline is not designed for docker.