-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 899 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# FROM ghcr.io/cirruslabs/flutter:3.24.3
FROM ghcr.io/cirruslabs/flutter:stable
#User
USER root
# Prerequisites
RUN apt update && apt install -y curl unzip
# Create Folder
RUN mkdir ${HOME}/sonar-scanner
#Download Sonar-Scanner
# RUN wget -O sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.0.2856.zip
# RUN wget -O sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.2.1.4610.zip
RUN wget -O sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-8.0.1.6346.zip
RUN unzip sonar-scanner-cli.zip && rm sonar-scanner-cli.zip
RUN mv sonar-scanner-8.0.1.6346 sonar-scanner
#Create system variables
ENV FLUTTER_SONAR=${HOME}/sonar-scanner
ENV PATH ${PATH}:${FLUTTER_HOME}/bin:${FLUTTER_HOME}/bin/cache/dart-sdk/bin:${FLUTTER_SONAR}/bin