forked from UnitTestBot/UTBotJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_java_cli
More file actions
28 lines (17 loc) · 773 Bytes
/
Dockerfile_java_cli
File metadata and controls
28 lines (17 loc) · 773 Bytes
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
FROM azul/zulu-openjdk:11.0.15-11.56.19
ARG UTBOT_JAVA_CLI
WORKDIR /usr/src/
# Install UTBot Java CLI
COPY ${UTBOT_JAVA_CLI} .
RUN UTBOT_JAVA_CLI_PATH="$(find /usr/src -type f -name 'utbot-cli*')" \
&& ln -s "${UTBOT_JAVA_CLI_PATH}" /usr/src/utbot-cli.jar
# Install dependencies
RUN apt-get update \
&& apt-get install -y -q wget unzip \
&& apt-get clean
# Install Kotlin compiler
ENV KOTLIN_COMPILER_VERSION=1.7.0
ENV KOTLIN_HOME="/opt/kotlin/kotlinc"
RUN wget --no-verbose https://github.com/JetBrains/kotlin/releases/download/v${KOTLIN_COMPILER_VERSION}/kotlin-compiler-${KOTLIN_COMPILER_VERSION}.zip -O /tmp/${KOTLIN_COMPILER_VERSION}.zip && \
unzip -q -d /opt/kotlin /tmp/${KOTLIN_COMPILER_VERSION}.zip
ENV PATH="${KOTLIN_HOME}/bin:${PATH}"