---
title: "Discussion on \"SonarScanner in Dockerfile\" | Hashnode"
description: "Discussion on \"SonarScanner in Dockerfile\". JavaScript\nFROM node:16.16.0 AS builder\n# Set an ARG to decide whether to run SONARSCAN\nARG SONAR_SCANNER_VERSION=5.0.1.3006\nARG SONARSCAN=false\nARG SONAR_TOKEN\nARG SONAR_PROJECT_KEY\nARG SONAR_HOST_URL\n# Install Sonar Scanner \nRUN if [ \"$SONARSCAN\" =..."
url: "https://hashnode.com/posts/sonarscanner-in-dockerfile/65facd6bfcda1df810f32c98"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [SonarScanner in Dockerfile](https://arsalanz.hashnode.dev/sonarscanner-in-dockerfile?utm_source=hashnode&utm_medium=feed)

JavaScript FROM node:16.16.0 AS builder # Set an ARG to decide whether to run SONARSCAN ARG SONAR\_SCANNER\_VERSION=5.0.1.3006 ARG SONARSCAN=false ARG SONAR\_TOKEN ARG SONAR\_PROJECT\_KEY ARG SONAR\_HOST\_URL # Install Sonar Scanner RUN if \[ "$SONARSCAN" =...

Mar 20, 2024 · 1 min read · arsalanz.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#dockerfile](https://hashnode.com/tag/dockerfile)
-   [#multi-stage-docker-file](https://hashnode.com/tag/multi-stage-docker-file)

## Written by

[Arsalan Z](https://hashnode.com/@arsalanz)

@arsalanz

  
[View profile](https://hashnode.com/@arsalanz)

I love coding, automation & coffee.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
