Docker - Dockerfile publish to use selected publish profile
You could use an ARG
statement in your Dockerfile.
ARG publishingProfileRUN dotnet publish "Aeros.Services.Kubernetes.csproj" -c $publishingProfile -o /app
Use it like this from the command line:docker build --build-arg publishingProfile=Release