HOW to create a docker container when i have two python scripts which are dependent to each other?

Hello,
I have two python scripts and I want to put them in a docker container. The output of one python script is written on a text file and this text file is read by the second code which is a dash-plotly dashboard.
My task now is to containerize them by docker. I build, run and curl docker container but it seems that the data is not sent properly. I attach the Dockerfile in this question. consolid.py is the code for dashboard and demonstrator_dynamic_2_0.py is the code that I need its output to run the dashboard. The output of one is input for the other. Can I put them in one container or should I create two and how?
I hope I could get a clue for my question.