Вернул Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-10-30 14:15:40 +03:00
parent 3eb7072866
commit 9df3938d94
2 changed files with 1 additions and 2 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ./ ./
RUN dotnet restore
RUN dotnet publish "SchengenVisaApi/SchengenVisaApi.csproj" -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app
COPY --from=build /app/publish ./
EXPOSE 5000
ENTRYPOINT ["dotnet", "SchengenVisaApi.dll"]