1
0
mirror of https://github.com/jakeswenson/BitBetter.git synced 2023-10-10 13:36:57 +02:00
BitBetter/licenseGen/Dockerfile
Michiel Hazelhof d8b87985b2
Initial work
2023-01-02 20:59:14 +01:00

16 lines
377 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:6.0 as build
WORKDIR /licenseGen
COPY . /licenseGen
COPY Core.dll /app/
COPY cert.pfx /app/
RUN dotnet restore
RUN dotnet publish -c Release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/sdk:6.0
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT [ "dotnet", "/app/licenseGen.dll", "--core", "/app/Core.dll", "--cert", "/app/cert.pfx" ]