How to update changed container

Docker noob here

I have a multi container app container 1 has front end flask app and container 2 has Elasticsearch
every time i make changes to container 1 (my flask app) I delete both the containers and deploy both the containers , how do i just deploy just the container where i make changes in this case container 1