From fcf0075f5e03f7adfe43cee90e2472eacb4c351c Mon Sep 17 00:00:00 2001 From: dw1 Date: Thu, 30 Jan 2020 16:34:59 +0700 Subject: [PATCH] add dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a24c8be --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM newtmitch/sonar-scanner:4.0.0-alpine + +LABEL "com.github.actions.name"="SonarQube Scan" +LABEL "com.github.actions.description"="Scan your code with SonarQube Scanner 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" + +LABEL version="0.0.1" +LABEL repository="https://github.com/kitabisa/sonarqube-action" +LABEL homepage="https://kitabisa.github.io" +LABEL maintainer="dwisiswant0" + +RUN npm config set unsafe-perm true && \ + npm install --silent --save-dev -g typescript@3.5.2 && \ + npm config set unsafe-perm false +ENV NODE_PATH "/usr/lib/node_modules/" + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"]