diff --git a/.vs/LeagueOfLegends/xs/UserPrefs.xml b/.vs/LeagueOfLegends/xs/UserPrefs.xml index 099e6d7..3f58e9d 100644 --- a/.vs/LeagueOfLegends/xs/UserPrefs.xml +++ b/.vs/LeagueOfLegends/xs/UserPrefs.xml @@ -1,15 +1,15 @@ - + - Tests/ConsoleTestapi/ConsoleTestapi.csproj + docker-compose.dcproj diff --git a/WebApiLol/Dockerfile b/WebApiLol/Dockerfile new file mode 100644 index 0000000..87cca07 --- /dev/null +++ b/WebApiLol/Dockerfile @@ -0,0 +1,22 @@ +#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +WORKDIR /app +EXPOSE 80 +EXPOSE 443 + +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +WORKDIR /src +COPY ["WebApiLol/WebApiLol.csproj", "WebApiLol/"] +RUN dotnet restore "WebApiLol/WebApiLol.csproj" +COPY . . +WORKDIR "/src/WebApiLol" +RUN dotnet build "WebApiLol.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "WebApiLol.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "WebApiLol.dll"]