From 9178e8a75f7f8846ef40f8f5af53462269b2d4ac Mon Sep 17 00:00:00 2001 From: pasta Date: Thu, 25 Jul 2024 16:02:31 -0500 Subject: [PATCH] feat: add smob and provenance in release for dockerhub; use jammy; apt remove as possible --- .github/workflows/release_docker_hub.yml | 2 ++ .../containers/deploy/Dockerfile.GitHubActions.Release | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_docker_hub.yml b/.github/workflows/release_docker_hub.yml index 8926715d44..bbdf755192 100644 --- a/.github/workflows/release_docker_hub.yml +++ b/.github/workflows/release_docker_hub.yml @@ -65,6 +65,8 @@ jobs: context: ./contrib/containers/deploy file: ./contrib/containers/deploy/Dockerfile.GitHubActions.Release push: true + provenance: mode=max + sbom: true tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} build-args: | diff --git a/contrib/containers/deploy/Dockerfile.GitHubActions.Release b/contrib/containers/deploy/Dockerfile.GitHubActions.Release index 7d977b7919..c32bada29c 100644 --- a/contrib/containers/deploy/Dockerfile.GitHubActions.Release +++ b/contrib/containers/deploy/Dockerfile.GitHubActions.Release @@ -1,4 +1,4 @@ -FROM ubuntu:focal +FROM ubuntu:jammy LABEL maintainer="Dash Developers " LABEL description="Dockerised DashCore" @@ -33,6 +33,14 @@ RUN mach=$(uname -m) \ && rm -rf /tmp/dashcore* \ && chmod a+x /usr/local/bin/* +RUN apt-get update && \ + apt list --installed && \ + apt-get -y purge \ + wget \ + ca-certificates \ + && apt-get -y autoremove \ + && rm -rf /var/lib/apt/lists/* + USER dash VOLUME ["/home/dash"]