0

I would like to be able to run this program in a few machines without installing all the required packages in every machine. Now, the program is running on one of these machines, so I thought in doing an image of it using docker with the following Dockerfile

FROM python:2
COPY . /app
WORKDIR /app
CMD ./waf # <--- problem is here

Now, the ideal would be that I could execute the script waf along with different options. For instance, to be able to run the example

./waf --run scratch/qkd_channel_test

However, I am not able to "add" the option run into the command docker run qkdnet-img --run. At some point, I need also to be able to open files with the program, e.g. to "feed" into the execution scratch/qkd_channel_test

How can I do this or how should I build the image in order to execute all these cases?

user2820579
  • 3,261
  • 7
  • 30
  • 45
  • 1
    You can run _e.g._ `docker run qkdnet-img ./waf --run scratch/qkv_channel_test`; repeat the entire command line. There's also an approach using `ENTRYPOINT` that I tend to not prefer. – David Maze Jan 26 '23 at 14:03

0 Answers0