mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-17 11:57:12 +03:00
🌱 Removed the dockerbuild experimental features (#409)
* Removed the docker build experimental feature so that cloudbuild can build.
This commit is contained in:
parent
80203a8351
commit
a440bf6294
@ -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 /
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user