Skip to content

Commit e93205e

Browse files
authored
Merge pull request #5 from MCLD/atomist/pin-docker-base-image/dockerfile
Pin Docker base images in Dockerfile
2 parents deb4444 + 1fa6a1c commit e93205e

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 @@
11
# prepare base image
2-
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base
2+
FROM mcr.microsoft.com/dotnet/runtime:7.0@sha256:bc86158b6c02a0983e3377be0a71b17982ca5ccb00840b0c44abc4184f6326a7 AS base
33
WORKDIR /app
44

55
# get build image
6-
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
6+
FROM mcr.microsoft.com/dotnet/sdk:7.0@sha256:a320a69c64e425e7eb42f8841d034fc3a4bb7a925ebb834c13680925c85e282c AS build
77
WORKDIR /src
88

99
# run dotnet restore

0 commit comments

Comments
 (0)