Skip to content

Commit

Permalink
feat: added digest in FROM tag in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ABouveron committed Jul 7, 2023
1 parent 03d08be commit 23749a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM alpine:latest as builder
FROM alpine@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 as builder
RUN apk add dotnet7-sdk
WORKDIR /src
COPY . .
RUN dotnet build

FROM alpine:latest as runner
FROM alpine@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 as runner
RUN apk add dotnet7-runtime
WORKDIR /src
COPY --from=builder /src .
Expand Down

0 comments on commit 23749a0

Please sign in to comment.