build testImage base on distroless as well
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM golang:1.14-stretch AS base
+FROM golang:1.15-buster AS base
WORKDIR /src
# Handle the go modules first to take advantage of Docker cache.
@@ -24,8 +24,7 @@ RUN go mod download
COPY src .
RUN go build -o /go/bin/testImage ./...
-FROM debian:stretch-slim
-MAINTAINER John Schnake "jschnake@vmware.com"
-COPY --from=base /go/bin/testImage /bin/testImage
+FROM gcr.io/distroless/static-debian10
+COPY --from=base /go/bin/testImage /testImage
COPY resources /resources
-CMD [ "testImage" ]
\ No newline at end of file
+CMD [ "/testImage" ]
