Last active
September 5, 2025 09:51
-
-
Save ironsoftwarebuild/beedfe65ffb7c633ceee2225ab4c20e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2019 AS build | |
| WORKDIR /src | |
| COPY ["ConsoleApp/ConsoleApp.csproj", "ConsoleApp/"] | |
| RUN dotnet restore "ConsoleApp/ConsoleApp.csproj" | |
| COPY . . | |
| WORKDIR "/src/ConsoleApp" | |
| RUN dotnet build "ConsoleApp.csproj" -c Release -o /app/build | |
| FROM build AS publish | |
| RUN dotnet publish "ConsoleApp.csproj" -c Release -o /app/publish /p:UseAppHost=false | |
| FROM ironsoftwareofficial/windows:2019-net60 | |
| WORKDIR /app | |
| COPY --from=publish /app/publish . | |
| ENTRYPOINT ["dotnet", "ConsoleApp.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment