add ci
Release Docker Image / build-and-push (release) Failing after 18s
Release NuGet Packages / pack-and-push (release) Failing after 2m49s

This commit is contained in:
2026-05-19 21:51:05 +03:30
parent 2bd9395d1d
commit 43505e0dff
9 changed files with 219 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY DevOpsTest.csproj ./
RUN dotnet restore DevOpsTest.csproj
COPY . ./
RUN dotnet publish DevOpsTest.csproj \
--configuration Release \
--no-restore \
--output /app/publish \
/p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
ENV ASPNETCORE_URLS=http://+:8080 \
ASPNETCORE_ENVIRONMENT=Production
EXPOSE 8080
COPY --from=build /app/publish ./
ENTRYPOINT ["dotnet", "DevOpsTest.dll"]