Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

[Snyk] Security upgrade golang from 1.18-alpine to 1.19.5-alpine #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# STEP 1 build executable binary

FROM golang:1.18-alpine AS build_base
FROM golang:1.19.5-alpine AS build_base

# Install git
RUN apk update && apk add git && apk add ca-certificates
Expand All @@ -27,7 +27,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-w -s' -o /go/bi
# STEP 2 build a small image

# start from scratch
FROM golang:1.18-alpine
FROM golang:1.19.5-alpine

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /etc/passwd /etc/passwd
Expand Down