Skip to content

Commit

Permalink
build: upgrade base image version and remove digest hash
Browse files Browse the repository at this point in the history
  • Loading branch information
upsetbit committed Oct 10, 2023
1 parent a31f482 commit 5f76422
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,4 +1,4 @@
FROM golang:1.20.1-alpine3.17@sha256:18da4399cedd9e383beb6b104d43aa1d48bd41167e312bb5306d72c51bd11548 AS image
FROM golang:1.21.2-alpine3.18 AS image
LABEL maintainer="Caian Ertl <hi@caian.org>"

FROM image AS base
Expand All @@ -20,6 +20,6 @@ RUN CGO_ENABLED=0 \
GOOS=linux \
go build -v -trimpath -installsuffix cgo -o list-github-stars -ldflags "-s -w"

FROM alpine:3.17.2@sha256:e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501 AS runtime
FROM alpine:3.18.4 AS runtime
COPY --from=build /go/app/list-github-stars /usr/local/bin
ENTRYPOINT ["list-github-stars"]

0 comments on commit 5f76422

Please sign in to comment.