From 2d06625bbdf8327a09557295b5d1c012ea44af3d Mon Sep 17 00:00:00 2001 From: Wes Widner Date: Tue, 17 Oct 2023 12:34:44 -0400 Subject: [PATCH] Fix vulnerabile dockerfile by updateing the go builder image used from 1.6 to 1.21 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37fc9fd..8385f3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ -FROM golang:1.6 +FROM golang:1.21 + +WORKDIR /go/src/github.com/buger/jsonparser +ADD . /go/src/github.com/buger/jsonparser RUN go get github.com/Jeffail/gabs RUN go get github.com/bitly/go-simplejson @@ -7,6 +10,3 @@ RUN go get github.com/antonholmquist/jason RUN go get github.com/mreiferson/go-ujson RUN go get -tags=unsafe -u github.com/ugorji/go/codec RUN go get github.com/mailru/easyjson - -WORKDIR /go/src/github.com/buger/jsonparser -ADD . /go/src/github.com/buger/jsonparser \ No newline at end of file