Skip to content

Commit d08596d

Browse files
authored
Fix docker version (#84)
1 parent 55052fb commit d08596d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22
WORKDIR /src
33

44

@@ -7,10 +7,10 @@ RUN dotnet restore
77

88

99
COPY . ./
10-
RUN dotnet publish -c Release -o out
10+
RUN dotnet publish -f net5.0 -c Release -o out
1111

1212

13-
FROM mcr.microsoft.com/dotnet/runtime:3.1
13+
FROM mcr.microsoft.com/dotnet/runtime:5.0
1414
WORKDIR /src
1515
COPY --from=build-env /src/out .
1616
ENTRYPOINT ["dotnet", "NugetUtility.dll"]

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,11 @@ docker build . -t nuget-license
109109
```
110110
### Run the image and export the licenses locally
111111
```
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
113119
```

src/NugetUtility.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<RepositoryType>git</RepositoryType>
1010
<PackageId>dotnet-project-licenses</PackageId>
1111
<ToolCommandName>dotnet-project-licenses</ToolCommandName>
12-
<Version>2.3.3</Version>
12+
<Version>2.3.4</Version>
1313
<Authors>Tom Chavakis</Authors>
1414
<Company>-</Company>
1515
<Title>.NET Core Tool to print a list of the licenses of a projects</Title>

0 commit comments

Comments
 (0)