In my docker file, I have this:
FROM microsoft/dotnet:2.0-runtime
ARG source
WORKDIR /app
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT ["dotnet", "app.dll"]
and I need to pass an application argument to the app, let's say --argument, so that the app can run inside the container.
So, I know I can run the app locally by doing
dotnet run -- --argument
but I'm stuck at trying to add the --argument to the Dockerfile (or anywhere, I don't know).
I tried adding CMD ["--argument"], CMD ["--", "--argument"]in the Dockerfile, but with no success.
Is it possible to do this?