Im using the follwoing docker file to run a python script
FROM python:3
COPY . /app
RUN pip install requests
RUN mkdir /app/foo
ENTRYPOINT [ "python3", "/app/main.py"]
the issue is that a file that need to be created , dose not created and i cant debug it inside the container it stopped to fast .
each run the contianer dies within 6 sec - i tried: infinite while loop in the python script . adding RUN tail -f to docker file with 0 success.
im running on docker desktop (win 10)
source https://stackoverflow.com/questions/69397766/force-python-container-to-stay-in-running-state-for-debugging
Comments
Post a Comment