File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 AS build-env
1
+ FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
2
2
WORKDIR /src
3
3
4
4
@@ -7,10 +7,10 @@ RUN dotnet restore
7
7
8
8
9
9
COPY . ./
10
- RUN dotnet publish -c Release -o out
10
+ RUN dotnet publish -f net5.0 - c Release -o out
11
11
12
12
13
- FROM mcr.microsoft.com/dotnet/runtime:3.1
13
+ FROM mcr.microsoft.com/dotnet/runtime:5.0
14
14
WORKDIR /src
15
15
COPY --from=build-env /src/out .
16
16
ENTRYPOINT ["dotnet" , "NugetUtility.dll" ]
Original file line number Diff line number Diff line change @@ -109,5 +109,11 @@ docker build . -t nuget-license
109
109
```
110
110
### Run the image and export the licenses locally
111
111
```
112
- docker run -it -v projectName:/tmp nuget-license -i /tmp -f /tmp --export-license-texts -l Verbose
112
+ docker run -it -v projectPath:/tmp nuget-license -i /tmp -f /tmp --export-license-texts -l Verbose
113
+
114
+ where projectPath is the path of the project that you want to export the licenses.
115
+ You can also add the command parameters of the tool.
116
+
117
+ ex.
118
+ docker run -it -v ~/Projects/github/nuget-license:/tmp nuget-license -i /tmp -o --export-license-texts -l Verbose
113
119
```
Original file line number Diff line number Diff line change 9
9
<RepositoryType >git</RepositoryType >
10
10
<PackageId >dotnet-project-licenses</PackageId >
11
11
<ToolCommandName >dotnet-project-licenses</ToolCommandName >
12
- <Version >2.3.3 </Version >
12
+ <Version >2.3.4 </Version >
13
13
<Authors >Tom Chavakis</Authors >
14
14
<Company >-</Company >
15
15
<Title >.NET Core Tool to print a list of the licenses of a projects</Title >
You can’t perform that action at this time.
0 commit comments