📄
.containerfile
FROM mcr.microsoft.com/dotnet/sdk:11.0.100-preview.4 AS build WORKDIR /app COPY ./MMirror.slnx ./global.json ./dotnet-tools.json ./Directory.Packages.props ./Directory.Build.props ./.gitignore ./.editorconfig ./ COPY ./src/App/App.csproj ./src/App/packages.lock.json ./src/App/ RUN dotnet restore --locked-mode COPY ./src/App/ ./src/App/ RUN dotnet build ./src/App/App.csproj --no-restore --configuration Release RUN dotnet publish ./src/App/App.csproj --no-build --configuration Release --output /output FROM mcr.microsoft.com/dotnet/runtime:11.0.0-preview.4 AS release WORKDIR /app RUN apt-get update && apt-get install -y kmscube libinput-tools COPY --from=build /output ./ ENTRYPOINT ["dotnet", "./MMirror.App.dll"]