This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
forked from Secbyte/dotnet-sonarscanner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (28 loc) · 1.68 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM mcr.microsoft.com/dotnet/core/sdk
LABEL "com.github.actions.name"="unity-sonarscanner"
LABEL "com.github.actions.description"="sonarscanner for unity projects"
LABEL "com.github.actions.icon"="check"
LABEL "com.github.actions.color"="purple"
LABEL "repository"="https://github.com/MirrorNG/unity-sonarscanner"
LABEL "homepage"="https://github.com/MirrorNG/unity-sonarscanner"
LABEL "maintainer"="Joshua Duffy <[email protected]>"
ADD unity_csc.sh.patch .
RUN echo "deb http://http.us.debian.org/debian/ testing contrib main" >> /etc/apt/sources.list && \
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg && \
mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ && \
wget -q https://packages.microsoft.com/config/debian/10/prod.list && \
mv prod.list /etc/apt/sources.list.d/microsoft-prod.list && \
chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
chown root:root /etc/apt/sources.list.d/microsoft-prod.list && \
apt-get update && \
apt-get install -y --no-install-recommends default-jre apt-transport-https aspnetcore-runtime-2.1 lsb-release patch && \
apt-get -t testing install -y --no-install-recommends python3.7 python3-distutils && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.7 get-pip.py && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \
apt-get autoremove -y && \
dotnet tool install dotnet-sonarscanner --tool-path . --version 4.7.1
COPY --from=gableroux/unity3d:2019.3.0f1 /opt/Unity /opt/Unity
RUN patch /opt/Unity/Editor/Data/Tools/RoslynScripts/unity_csc.sh unity_csc.sh.patch
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]