Dockerfile ENTRYPOINT with parameters

Dave New

I need to run the following on ENTRYPOINT[..]:

dotnet reportgenerator -reports:coverage.cobertura.xml -targetdir:Reports -reportTypes:htmlInline

How do I do this?

leopal

Try execform of ENTRYPOINT:

ENTRYPOINT ["dotnet","reportgenerator","-reports:coverage.cobertura.xml","-targetdir:Reports","-reportTypes:htmlInline"]

Apart from execform there is the shell form, which looks like this:

ENTRYPOINT command param1 param2

In the ENTRYPOINT array, you should include stable default(they are not considered changeable) commands with their arguments. Then if you wish to set additional defaults that are more likely to be changed use CMD.

Example taken from the official's documentation link:

FROM ubuntu
ENTRYPOINT ["top", "-b"]
CMD ["-c"]

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related