🌱 Removed the dockerbuild experimental features (#409)

* Removed the docker build experimental feature so that cloudbuild can
build.
This commit is contained in:
Naveen 2021-05-07 07:49:30 -05:00 committed by GitHub
parent 80203a8351
commit a440bf6294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -1,4 +1,3 @@
# syntax = docker/dockerfile:experimental
# Copyright 2020 Security Scorecard Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
@ -24,7 +23,7 @@ COPY . ./
FROM base AS build
ARG TARGETOS
ARG TARGETARCH
RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 make build
RUN CGO_ENABLED=0 make build
FROM gcr.io/distroless/base:nonroot
COPY --from=build /src/scorecard /

View File

@ -183,8 +183,6 @@ The `GITHUB_AUTH_TOKEN` has to be set to a valid [token](#github_auth_token)
docker run -e GITHUB_AUTH_TOKEN=token docker.pkg.github.com/ossf/scorecard/scorecard --show-details --repo=https://github.com/ossf/scorecard
```
The Dockerfile in the root directory utilizes [experimental features](https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md) which is available in Docker v18.09 or later.
### Caching
Scorecard uses `httpcache` with <https://docs.github.com/en/rest/overview/resources-in-the-rest-api#conditional-requests> for caching httpresponse. The default cache is in-memory.