I have a project and ı need to run 2 script when ı run mu Docker Image. Two of them this script has infinite loop. So none of them will stop.
I tried the use:
CMD ["python3", "main.py", "btcusdt"]
CMD ["python3", "Flask_API/api_main.py"]
But ı discovered only last line of CDM is working.
Is there any way to do this ? Or should ı split my code and create 2 Docker Image ?
Thank you for time.
Here is my current not working Dockerfile:
FROM python:3.8
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
CMD ["python3", "main.py", "btcusdt"]
CMD ["python3", "Flask_API/api_main.py"]