From e4673162d444dcd1d07b169a9241ecfbb365ad1b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 27 Jan 2024 08:16:32 +0000 Subject: [PATCH] Pin dependencies --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b5c31e..09c95f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine as build +FROM golang:1.21-alpine@sha256:a49e5101be836613e432f0911b66a47dd48b50ebcd720717f70a30968237789e as build COPY . /code WORKDIR /code ENV CGO_ENABLED=0 @@ -6,7 +6,7 @@ ENV GOPROXY=https://proxy.golang.org RUN go mod download && \ go build -o app -FROM alpine:3.18 +FROM alpine:3.18@sha256:11e21d7b981a59554b3f822c49f6e9f57b6068bb74f49c4cd5cc4c663c7e5160 RUN apk add --no-cache tzdata ca-certificates COPY --from=build /code/app /app/app WORKDIR /app