-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 868 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 868 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
29
30
31
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 \
curl \
gpg-agent \
software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install -y -q --no-install-recommends \
python3.10 \
python3-distutils \
&& rm /usr/bin/python3 \
&& ln -s /usr/bin/python3.10 /usr/bin/python3 \
&& rm -rf /var/lib/apt/lists/* \
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python3 get-pip.py \
&& pip install -U \
pytest
# Install UTBot Python CLI
ARG ARTIFACT_PATH
COPY ${ARTIFACT_PATH} .
RUN UTBOT_PYTHON_CLI_PATH="$(find /usr/src -type f -name 'utbot-cli*')" \
&& ln -s "${UTBOT_PYTHON_CLI_PATH}" /usr/src/utbot-cli.jar