File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
1
FROM openjdk:8
2
2
3
- ARG ACCESS_TOKEN
3
+ ARG JAVA_CLI
4
4
5
5
WORKDIR /usr/src/
6
6
7
- RUN apt-get update \
8
- && apt-get install -y curl \
9
- unzip \
10
- python3 \
11
- python3-requests \
12
- && apt-get clean
13
-
14
7
# Install UTBot Java CLI
15
- COPY docker/get_java_cli_download_url.py .
16
8
17
- ENV JAVA_CLI_ZIP_NAME "utbot_java_cli.zip"
9
+ COPY ${JAVA_CLI} .
18
10
19
- RUN curl -H "Authorization: Bearer ${ACCESS_TOKEN}" \
20
- -L "$(python3 get_java_cli_download_url.py)" \
21
- -o "${JAVA_CLI_ZIP_NAME}" \
22
- && unzip "${JAVA_CLI_ZIP_NAME}" \
23
- && rm "${JAVA_CLI_ZIP_NAME}" \
24
- && JAVA_CLI_PATH="$(find /usr/src -type f -name 'utbot-cli*')" \
11
+ RUN JAVA_CLI_PATH="$(find /usr/src -type f -name 'utbot-cli*')" \
25
12
&& ln -s "${JAVA_CLI_PATH}" /usr/src/utbot-cli.jar
You can’t perform that action at this time.
0 commit comments