From e6db37f02bc0e1b0b0ab605e6c87ab71becd5c05 Mon Sep 17 00:00:00 2001 From: Aminekan Date: Fri, 3 Apr 2026 13:31:21 +0200 Subject: [PATCH] Fix Dockerfile --- ShopAPI/ShopAPI/Dockerfile | 20 ++++-------------- .../obj/Debug/net8.0/ShopAPI.AssemblyInfo.cs | 2 +- .../net8.0/ShopAPI.AssemblyInfoInputs.cache | 2 +- ....GeneratedMSBuildEditorConfig.editorconfig | 4 ++-- .../obj/Debug/net8.0/ShopAPI.assets.cache | Bin 52097 -> 52097 bytes .../obj/Debug/net8.0/rpswa.dswa.cache.json | 2 +- .../obj/ShopAPI.csproj.nuget.dgspec.json | 10 ++++----- .../ShopAPI/obj/ShopAPI.csproj.nuget.g.props | 2 +- ShopAPI/ShopAPI/obj/project.assets.json | 6 +++--- ShopAPI/ShopAPI/obj/project.nuget.cache | 4 ++-- 10 files changed, 20 insertions(+), 32 deletions(-) diff --git a/ShopAPI/ShopAPI/Dockerfile b/ShopAPI/ShopAPI/Dockerfile index 198df52..b542d2d 100644 --- a/ShopAPI/ShopAPI/Dockerfile +++ b/ShopAPI/ShopAPI/Dockerfile @@ -1,29 +1,17 @@ -# Unter https://aka.ms/customizecontainer erfahren Sie, wie Sie Ihren Debugcontainer anpassen und wie Visual Studio dieses Dockerfile verwendet, um Ihre Images für ein schnelleres Debuggen zu erstellen. - -# Diese Stufe wird verwendet, wenn sie von VS im Schnellmodus ausgeführt wird (Standardeinstellung für Debugkonfiguration). FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -USER $APP_UID WORKDIR /app EXPOSE 8080 -EXPOSE 8081 - -# Diese Stufe wird zum Erstellen des Dienstprojekts verwendet. FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -ARG BUILD_CONFIGURATION=Release WORKDIR /src -COPY ["ShopAPI/ShopAPI.csproj", "ShopAPI/"] -RUN dotnet restore "./ShopAPI/ShopAPI.csproj" +COPY ["ShopAPI.csproj", "./"] +RUN dotnet restore "ShopAPI.csproj" COPY . . -WORKDIR "/src/ShopAPI" -RUN dotnet build "./ShopAPI.csproj" -c $BUILD_CONFIGURATION -o /app/build +RUN dotnet build "ShopAPI.csproj" -c Release -o /app/build -# Diese Stufe wird verwendet, um das Dienstprojekt zu veröffentlichen, das in die letzte Phase kopiert werden soll. FROM build AS publish -ARG BUILD_CONFIGURATION=Release -RUN dotnet publish "./ShopAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false +RUN dotnet publish "ShopAPI.csproj" -c Release -o /app/publish -# Diese Stufe wird in der Produktion oder bei Ausführung von VS im regulären Modus verwendet (Standard, wenn die Debugkonfiguration nicht verwendet wird). FROM base AS final WORKDIR /app COPY --from=publish /app/publish . diff --git a/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfo.cs b/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfo.cs index 0effa11..61e80e0 100644 --- a/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfo.cs +++ b/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfo.cs @@ -15,7 +15,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("ShopAPI")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d297055cc4ab7e3c8a93d2b98beca4da08aba908")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7434fc2e383eab0a851edefb00efa6792b449418")] [assembly: System.Reflection.AssemblyProductAttribute("ShopAPI")] [assembly: System.Reflection.AssemblyTitleAttribute("ShopAPI")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfoInputs.cache b/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfoInputs.cache index 64228f5..02b9010 100644 --- a/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfoInputs.cache +++ b/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.AssemblyInfoInputs.cache @@ -1 +1 @@ -4ace5e3dd2679b7f8d6ba402a9a151576ba9bd2f4940c60938bf7c3a5fa4b2f7 +ed962257c8cc549335443a520fc7651fc3b07a868cd516b095cbeda60aad08d8 diff --git a/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.GeneratedMSBuildEditorConfig.editorconfig b/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.GeneratedMSBuildEditorConfig.editorconfig index 7c07bfa..d628790 100644 --- a/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.GeneratedMSBuildEditorConfig.editorconfig +++ b/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.GeneratedMSBuildEditorConfig.editorconfig @@ -17,13 +17,13 @@ build_property._SupportedPlatformList = Linux,macOS,Windows build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = ShopAPI build_property.RootNamespace = ShopAPI -build_property.ProjectDir = C:\Users\bib\Desktop\Projekt-Fluxon\shop_Fluxon\ShopAPI\ShopAPI\ +build_property.ProjectDir = C:\Users\bib\Desktop\WebShop_Fluxon\ShopAPI\ShopAPI\ build_property.EnableComHosting = build_property.EnableGeneratedComInterfaceComImportInterop = build_property.RazorLangVersion = 8.0 build_property.SupportLocalizedComponentNames = build_property.GenerateRazorMetadataSourceChecksumAttributes = -build_property.MSBuildProjectDirectory = C:\Users\bib\Desktop\Projekt-Fluxon\shop_Fluxon\ShopAPI\ShopAPI +build_property.MSBuildProjectDirectory = C:\Users\bib\Desktop\WebShop_Fluxon\ShopAPI\ShopAPI build_property._RazorSourceGeneratorDebug = build_property.EffectiveAnalysisLevelStyle = 8.0 build_property.EnableCodeStyleSeverity = diff --git a/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.assets.cache b/ShopAPI/ShopAPI/obj/Debug/net8.0/ShopAPI.assets.cache index cd6d097068e992878aba62506e747f2351bb2a32..75be2c4e026518b9daee544d4d04bb7e42c4fb70 100644 GIT binary patch delta 51 zcmV-30L=e^mji*911L~SM?nk#002A*hUR2=NAmZlT8fx?W}ekX5--n4zf{-&q)$Ih JXGyUrS$(UserProfile)\.nuget\packages\ C:\Users\bib\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages PackageReference - 6.14.0 + 6.14.2 diff --git a/ShopAPI/ShopAPI/obj/project.assets.json b/ShopAPI/ShopAPI/obj/project.assets.json index 1b9e2f8..8139ddf 100644 --- a/ShopAPI/ShopAPI/obj/project.assets.json +++ b/ShopAPI/ShopAPI/obj/project.assets.json @@ -3844,11 +3844,11 @@ "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\bib\\Desktop\\Projekt-Fluxon\\shop_Fluxon\\ShopAPI\\ShopAPI\\ShopAPI.csproj", + "projectUniqueName": "C:\\Users\\bib\\Desktop\\WebShop_Fluxon\\ShopAPI\\ShopAPI\\ShopAPI.csproj", "projectName": "ShopAPI", - "projectPath": "C:\\Users\\bib\\Desktop\\Projekt-Fluxon\\shop_Fluxon\\ShopAPI\\ShopAPI\\ShopAPI.csproj", + "projectPath": "C:\\Users\\bib\\Desktop\\WebShop_Fluxon\\ShopAPI\\ShopAPI\\ShopAPI.csproj", "packagesPath": "C:\\Users\\bib\\.nuget\\packages\\", - "outputPath": "C:\\Users\\bib\\Desktop\\Projekt-Fluxon\\shop_Fluxon\\ShopAPI\\ShopAPI\\obj\\", + "outputPath": "C:\\Users\\bib\\Desktop\\WebShop_Fluxon\\ShopAPI\\ShopAPI\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" diff --git a/ShopAPI/ShopAPI/obj/project.nuget.cache b/ShopAPI/ShopAPI/obj/project.nuget.cache index 15221b1..4b50cc1 100644 --- a/ShopAPI/ShopAPI/obj/project.nuget.cache +++ b/ShopAPI/ShopAPI/obj/project.nuget.cache @@ -1,8 +1,8 @@ { "version": 2, - "dgSpecHash": "XoiN4+B0is4=", + "dgSpecHash": "nJsFU3hH5rE=", "success": true, - "projectFilePath": "C:\\Users\\bib\\Desktop\\Projekt-Fluxon\\shop_Fluxon\\ShopAPI\\ShopAPI\\ShopAPI.csproj", + "projectFilePath": "C:\\Users\\bib\\Desktop\\WebShop_Fluxon\\ShopAPI\\ShopAPI\\ShopAPI.csproj", "expectedPackageFiles": [ "C:\\Users\\bib\\.nuget\\packages\\bcrypt.net-next\\4.1.0\\bcrypt.net-next.4.1.0.nupkg.sha512", "C:\\Users\\bib\\.nuget\\packages\\humanizer.core\\2.14.1\\humanizer.core.2.14.1.nupkg.sha512",