-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 834 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 834 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:17.0.7-17.42.19
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /usr/src/
RUN apt-get update \
&& apt-get install -y -q --no-install-recommends \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install Kotlin compiler
ENV KOTLIN_COMPILER_VERSION=1.8.0
ENV KOTLIN_HOME="/opt/kotlin/kotlinc"
ENV PATH="${KOTLIN_HOME}/bin:${PATH}"
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
# Install UTBot Java CLI
ARG ARTIFACT_PATH
COPY ${ARTIFACT_PATH} .
RUN UTBOT_JAVA_CLI_PATH="$(find /usr/src -type f -name 'utbot-cli*')" \
&& ln -s "${UTBOT_JAVA_CLI_PATH}" /usr/src/utbot-cli.jar