Skip to content

Commit

Permalink
🌱 Distroless container (#982)
Browse files Browse the repository at this point in the history
* 🌱 Distroless container

- Distroless containers

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>

* Update Dockerfile

Co-authored-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Naveen <172697+naveensrinivasan@users.noreply.github.com>

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
Signed-off-by: Naveen <172697+naveensrinivasan@users.noreply.github.com>
Co-authored-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
naveensrinivasan and spencerschrock committed Oct 25, 2022
1 parent 3335f38 commit f8ef130
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Dockerfile
Expand Up @@ -35,17 +35,6 @@ ARG TARGETOS
ARG TARGETARCH
RUN CGO_ENABLED=0 make build

# TODO: use distroless:
# FROM gcr.io/distroless/base:nonroot@sha256:02f667185ccf78dbaaf79376b6904aea6d832638e1314387c2c2932f217ac5cb
FROM debian:11.5-slim@sha256:b46fc4e6813f6cbd9f3f6322c72ab974cc0e75a72ca02730a8861e98999875c7

RUN apt-get update && \
apt-get install -y --no-install-recommends \
# For debugging.
jq ca-certificates curl
FROM gcr.io/distroless/base:nonroot@sha256:99133cb0878bb1f84d1753957c6fd4b84f006f2798535de22ebf7ba170bbf434
COPY --from=build /src/scorecard-action /

# Copy a test policy for local testing.
COPY policies/template.yml /policy.yml

ENTRYPOINT [ "/scorecard-action" ]

0 comments on commit f8ef130

Please sign in to comment.