From f66c59d2057950cf320b7edf0a9d340b382c5d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Woltvint=20N=C4=9Bme=C4=8Dek?= Date: Wed, 20 Dec 2023 01:53:58 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5649aff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM mcr.microsoft.com/dotnet/sdk:7.0 + +ARG NUGET_URL +ARG NUGET_USER +ARG NUGET_PASS + +COPY . . +RUN dotnet nuget add source --name Gitea --username $NUGET_USER --password $NUGET_PASS $NUGET_URL --store-password-in-clear-text +RUN dotnet restore +RUN dotnet test +RUN dotnet pack -o ./output +RUN dotnet nuget push --source Gitea ./output/* \ No newline at end of file