-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Dockerfile
30 lines (23 loc) · 1.03 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
FROM eclipse-temurin:23-jdk
MAINTAINER Konstantin Aksenov
LABEL "com.github.actions.name"="Danger Kotlin"
LABEL "com.github.actions.description"="Runs Kotlin Dangerfiles"
LABEL "com.github.actions.icon"="zap"
LABEL "com.github.actions.color"="blue"
ARG KOTLINC_VERSION="2.0.21"
ARG DANGER_KOTLIN_VERSION="1.3.2"
ARG DANGER_JS_VERSION="11.3.1"
# Install dependencies
RUN apt-get update
RUN apt-get install -y npm nodejs wget unzip git
# Install Kotlin compiler
RUN wget -q "https://github.com/JetBrains/kotlin/releases/download/v$KOTLINC_VERSION/kotlin-compiler-$KOTLINC_VERSION.zip" && \
unzip "kotlin-compiler-$KOTLINC_VERSION.zip" -d /usr/lib && \
rm "kotlin-compiler-$KOTLINC_VERSION.zip"
ENV PATH $PATH:/usr/lib/kotlinc/bin
# Install Danger-JS
RUN npm install -g "danger@$DANGER_JS_VERSION"
# Install Danger-Kotlin
RUN wget -q "https://github.com/danger/kotlin/releases/download/$DANGER_KOTLIN_VERSION/danger-kotlin-linuxX64.tar" && \
tar -xvf "danger-kotlin-linuxX64.tar" -C /usr/local && \
rm "danger-kotlin-linuxX64.tar"