Update .net core and newtonsoft.json

Co-authored-by: Michiel Hazelhof <m.hazelhof@fyn.nl>

Due to compatibility issues laid out in issue #53:

Update from .net core 2.0 to 3.1 and newtonsoft.json 12.0.1 to 12.0.3.
This commit is contained in:
Michiel Hazelhof
2020-03-14 12:00:25 +01:00
committed by GitHub
parent 9c62a6f2ca
commit 006fa1fecf
7 changed files with 14 additions and 14 deletions

View File

@@ -1,17 +1,17 @@
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as build
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as build
WORKDIR /licenseGen
COPY . /licenseGen
RUN set -e; set -x; \
dotnet add package Newtonsoft.Json --version 12.0.1 \
dotnet add package Newtonsoft.Json --version 12.0.3 \
&& dotnet restore \
&& dotnet publish
FROM bitbetter/api
COPY --from=build /licenseGen/bin/Debug/netcoreapp2.0/publish/* /app/
COPY --from=build /licenseGen/bin/Debug/netcoreapp3.1/publish/* /app/
ENTRYPOINT [ "dotnet", "/app/licenseGen.dll", "--core", "/app/Core.dll", "--cert", "/cert.pfx" ]