1

Add Dockerfile

This commit is contained in:
Woltvint Němeček 2023-12-20 01:53:58 +00:00
parent e6f9091a21
commit f66c59d205

12
Dockerfile Normal file
View File

@ -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/*