sonarcloud-github-action/Dockerfile
Ken Huang c35654669e
Speed-up initialization of action
by using the built image of scanner CLI
2020-06-02 11:16:54 +02:00

24 lines
880 B
Docker

FROM sonarsource/sonar-scanner-cli:4.3
LABEL version="0.0.1"
LABEL repository="https://github.com/sonarsource/sonarcloud-github-action"
LABEL homepage="https://github.com/sonarsource/sonarcloud-github-action"
LABEL maintainer="SonarSource"
LABEL "com.github.actions.name"="SonarCloud Scan"
LABEL "com.github.actions.description"="Scan your code with SonarCloud to detect bugs, vulnerabilities and code smells in more than 25 programming languages."
LABEL "com.github.actions.icon"="check"
LABEL "com.github.actions.color"="green"
ARG SONAR_SCANNER_HOME=/opt/sonar-scanner
ARG NODEJS_HOME=/opt/nodejs
ENV PATH=${PATH}:${SONAR_SCANNER_HOME}/bin:${NODEJS_HOME}/bin
WORKDIR /opt
# https://help.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
USER root
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]