What is the right way for running multiple commands in one action?
I want to run a python script as action.
Before running this script I need to install the requirements.txt.
I can think of several options:
- Create a Dockerfile with the command RUN pip install -r requirements.txt in it.
- Use the python:3 image, and run the pip install -r requirements.txt in the entrypoint.sh file before running the arguments from args in main.workflow.
- use both pip install and python myscript.py as args
I want to run a script that exists in my repository, then compare 2 files (its output and a file that already exists).
This is a process that includes two commands , whereas in the first example, the pip install command can be considered a building command rather than a test command.
Can I create another Docker for another command, which will contain the output of the previous Docker?
I’m looking for guidelines for the location of the command in Dockerfile, in entrypoint or in args.