github.com/anchore/syft@v1.38.2/syft/pkg/cataloger/dotnet/test-fixtures/image-net8-ilrepack/Dockerfile (about) 1 # This is the same as the net8-app image, but without the .deps.json file. 2 FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:8.0-alpine@sha256:7d3a75ca5c8ac4679908ef7a2591b9bc257c62bd530167de32bba105148bb7be AS build 3 ARG RUNTIME=win-x64 4 WORKDIR /src 5 6 # copy csproj and restore as distinct layers 7 COPY src/*.csproj . 8 RUN dotnet restore -r $RUNTIME --verbosity normal 9 10 # copy and publish app and libraries 11 COPY src/ . 12 RUN dotnet publish -r $RUNTIME --no-restore -o /app 13 14 FROM busybox 15 WORKDIR /app 16 COPY --from=build /app . 17 # just a nice to have for later... 18 #COPY --from=build /src/packages.lock.json .