I have a python script that i am trying to get running correctly in a docker container. I am struggling with the CMD section of the DOCKERFILE.
I can get the script to run correctly from my terminal that shows the live updates continuously as per the code in the script by opening an interactive python console and then running the following commands
exec(open(“coin_flip_demo_v1.0.py").read())
test = coin_flip_demo()
test._run_()
My DOCKERFILE looks like
FROM python:3.6
RUN mkdir src
ADD . /src/
RUN pip install pandas
WORKDIR /src/
EXPOSE 32768 32769 32770
CMD [ "python", "./coin_flip_demo_v1.0.py" ]
When i try to run the container it doesn't give any errors however when i run docker ps
there are no containers showing
Just for reference
coin_flip_demo_v1.0.py
is the script i am trying to run
coin_flip_demo
is my main class in that script
_run_
is a module within the main class.
Let me know if you need any more info to solve this issue.
Thanks