Filenotfounderror In Custon Docker Python Image
I have a python code in which I am opening a file and then extracting a particular data. Below is that code: def get_mode(first, last): with open('/srv/config/mode.conf','r') a
Solution 1:
You need to add the config file to your image as well.
RUN mkdir -p /srv/config
ADD mode.conf /srv/config
or something like that.
Post a Comment for "Filenotfounderror In Custon Docker Python Image"