Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Fix Issue 132: Reduce Docker image size #140

Closed
wants to merge 13 commits into from

Conversation

alimalek71
Copy link
Contributor

@alimalek71 alimalek71 commented Oct 24, 2019

Description

Add new alpine base Dockerfile and reduce the size of the image (see Dockerfile.alpine)

Fixes #132

Toolchain

  • Generic
  • Java
  • JavaScript
  • Ruby
  • Python
  • Other

How Has This Been Tested?

I need help to test all functionality and a sanity test for this new docker image.

Notes for the reviewer

For simplicity and reduce the time of build, you can pull the docker image from here.
docker pull alimalek/scanner-cli

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@alimalek71 alimalek71 changed the title Fix Issue 132 🚀 Fix Issue 132: Reduce Docker image size Oct 24, 2019
@alimalek71 alimalek71 changed the title 🚀 Fix Issue 132: Reduce Docker image size Fix Issue 132: Reduce Docker image size Oct 24, 2019
&& wget --quiet https://github.com/find-sec-bugs/find-sec-bugs/releases/download/version-${FINDSECBUGS_VERSION}/findsecbugs-cli-${FINDSECBUGS_VERSION}.zip \
&& unzip -q findsecbugs-cli-${FINDSECBUGS_VERSION}.zip \
&& rm findsecbugs.sh \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if cargo-audit is the only thing we need, I mean the binary. If yes, we don't have to install rust compiler in our final image. @felixhammerl

Dockerfile.alpine Outdated Show resolved Hide resolved
Dockerfile.alpine Outdated Show resolved Hide resolved
@felixhammerl
Copy link
Collaborator

merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Docker image is too huge
4 participants