Skip to content

Instantly share code, notes, and snippets.

@pplmx
Created December 21, 2021 06:08
Show Gist options
  • Save pplmx/0e87c633ec7ddcfa5184e171c0a302c0 to your computer and use it in GitHub Desktop.
Save pplmx/0e87c633ec7ddcfa5184e171c0a302c0 to your computer and use it in GitHub Desktop.
SonarQube Scanner NodeJS project
FROM sonarqube:community
USER root
# --no-cache: download package index on-the-fly, no need to cleanup afterwards
# --virtual: bundle packages, remove whole bundle at once, when done
# Using --no-cache avoids having to use rm -rf /var/cache/apk/*;
# Using --virtual allows you to remove multiple packages required during build only at once
RUN apk --update --no-cache --virtual build-dependencies add \
nodejs \
&& apk del build-dependencies
USER sonarqube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment