I'm trying to configure a Docker image so that a user can type in "docker run image" and have a window pop up to select the input file. I tried to use Tkinter when creating the Docker image, but the Python script errors out when it tries to load Tkinter.
Since Tkinter did not work I tried to just switch to a normal input query using:
path= input('Input the file path:\n')
But now I am getting an "EOFError: EOF when reading a line" when it gets to the input() line.
My Dockerfile is as follows
FROM python:3
ADD script.py /
RUN pip install xlrd
RUN pip install numpy
RUN pip install matplotlib
CMD [ "python", "./script.py" ]
Any ideas as to why this is happening? I'm very new to using Docker so any help would be much appreciated :)