Skip to content

Commit c907e53

Browse files
authored
Pin digest for base image (#87)
Update to latest base image Built locally, unsure what further testing is required: ``` > docker buildx build --platform linux/amd64 -f Dockerfile -t scip-dotnet:latest . > docker run --rm -it --entrypoint /bin/sh scip-dotnet:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested # scip-dotnet Required command was not provided. Description: SCIP indexer for the C# and Visual basic programming languages. Built with the Roslyn .NET compiler. Supports MSBuild. Usage: scip-dotnet [command] [options] Options: --version Show version information -?, -h, --help Show help and usage information Commands: index <projects> Index a solution file # scip-dotnet --version 0.2.12+8e17391641b3a1096193d927ca7459e7140fd95f ``` Using index digest: ``` > docker buildx imagetools inspect mcr.microsoft.com/dotnet/sdk:9.0 Name: mcr.microsoft.com/dotnet/sdk:9.0 MediaType: application/vnd.docker.distribution.manifest.list.v2+json Digest: sha256:ae000be75dac94fc40e00f0eee903289e985995cc06dac3937469254ce5b60b6 ```
1 parent 7cf2558 commit c907e53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:9.0
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0@sha256:ae000be75dac94fc40e00f0eee903289e985995cc06dac3937469254ce5b60b6
22
WORKDIR /scip-dotnet
33
ADD . /scip-dotnet
44
RUN dotnet pack
55
ENV PATH="/root/.dotnet/tools:${PATH}"
66
RUN dotnet tool install --framework net9.0 --add-source ScipDotnet/bin/Release/ --global scip-dotnet
77
RUN dotnet clean
88
WORKDIR /app
9-
RUN rm -rf /scip-dotnet
9+
RUN rm -rf /scip-dotnet

0 commit comments

Comments
 (0)