mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2025-12-16 19:26:18 +00:00
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:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user