From 6e00589ce34b4c6802b8bb4b7cd4be7dfcfc26a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tagscherer=20=C3=81d=C3=A1m?= Date: Tue, 6 Jun 2023 09:02:43 +0200 Subject: [PATCH] feat: add arm64 support for docker image (#6) * feat: add arm64 support for docker image * feat: use digest instead of tag for image * feat: add version to base image --- .github/workflows/reusable-build-and-push.yml | 1 + Dockerfile | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-build-and-push.yml b/.github/workflows/reusable-build-and-push.yml index 00826d7..19ce2ca 100644 --- a/.github/workflows/reusable-build-and-push.yml +++ b/.github/workflows/reusable-build-and-push.yml @@ -62,6 +62,7 @@ jobs: uses: docker/build-push-action@v4 with: context: . + platforms: linux/amd64,linux/arm64 tags: ghcr.io/openclarity/exploit-db-server:${{ inputs.image_tag }} file: Dockerfile push: ${{ inputs.push }} diff --git a/Dockerfile b/Dockerfile index 2acd329..737199e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -# go-exploitdb v0.4.5 -FROM vuls/go-exploitdb@sha256:9f18d41d3f1a75d851a6126dba8aff873d1d2bb2ded78cbd6d0150cd0dba655d +FROM vuls/go-exploitdb:v0.4.5@sha256:ba49bb2334b7747a05f8899ead84c5d09ca3f4879419aa76d63f308fa4215c9c # Make directory to store DB if not volume mounted RUN mkdir /vuls