diff --git a/GermanApp/Dockerfile b/GermanApp/Dockerfile index c311088..007e911 100644 --- a/GermanApp/Dockerfile +++ b/GermanApp/Dockerfile @@ -9,14 +9,14 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /src -# Copy project file and restore dependencies +# Copy project file and restore dependencies for Linux-x64 COPY ["GermanApp.csproj", "."] -RUN dotnet restore "GermanApp.csproj" +RUN dotnet restore "GermanApp.csproj" --runtime linux-x64 # Copy everything else and build COPY . . WORKDIR "/src" -RUN dotnet build "GermanApp.csproj" -c Release -o /app/build +RUN dotnet build "GermanApp.csproj" -c Release -o /app/build --runtime linux-x64 # Publish the application RUN dotnet publish "GermanApp.csproj" -c Release -o /app/publish \ diff --git a/GermanApp/GermanApp.csproj b/GermanApp/GermanApp.csproj index e71a865..bed793f 100644 --- a/GermanApp/GermanApp.csproj +++ b/GermanApp/GermanApp.csproj @@ -2,6 +2,7 @@ net9.0 + linux-x64 enable enable