diff --git a/Dockerfile b/Dockerfile index fbb2220..22a16a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.22 as builder +FROM golang:1.22 AS builder ARG TARGETOS ARG TARGETARCH ARG VERSION @@ -34,7 +34,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build \ -X github.com/undistro/marvin/pkg/version.commit=${COMMIT} \ -X github.com/undistro/marvin/pkg/version.date=${DATE}" -a -o marvin main.go -FROM alpine:3.19.1 +FROM alpine:3.20.3 RUN apk upgrade && rm /var/cache/apk/* RUN addgroup -g 8494 -S nonroot && adduser -u 8494 -D -S nonroot -G nonroot USER 8494:8494