File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM hexletbasics/base-image:latest
22
3- WORKDIR /exercises-java
3+ ENV COURSE_DIR= /exercises-java
44
5- ENV PATH=/exercises-java/bin:$PATH
5+ WORKDIR ${COURSE_DIR}
66
7- RUN apt-get update && apt-get install -yqq openjdk-21-jdk
7+ ENV PATH=${COURSE_DIR}/bin:$PATH
88
9- ENV CHECKSTYLE_VERSION 10.22.0
9+ RUN apt-get update && apt-get install -yqq openjdk-21-jdk \
10+ && rm -rf /var/lib/apt/lists/*
11+
12+ ENV CHECKSTYLE_VERSION=10.22.0
1013RUN curl -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${CHECKSTYLE_VERSION}/checkstyle-${CHECKSTYLE_VERSION}-all.jar > /opt/checkstyle.jar
1114RUN chmod 777 /opt/checkstyle.jar
1215
13- ENV ASSERTJ_VERSION 3.24.2
16+ ENV ASSERTJ_VERSION=3.24.2
17+
1418RUN curl -L https://repo1.maven.org/maven2/org/assertj/assertj-core/${ASSERTJ_VERSION}/assertj-core-${ASSERTJ_VERSION}.jar > /opt/assertj.jar
1519RUN chmod 777 /opt/assertj.jar
1620
17- ENV COMMONS_LANG3_VERSION 3.14.0
21+ ENV COMMONS_LANG3_VERSION= 3.14.0
1822RUN curl -L https://repo1.maven.org/maven2/org/apache/commons/commons-lang3/${COMMONS_LANG3_VERSION}/commons-lang3-${COMMONS_LANG3_VERSION}.jar > /opt/commons_lang3.jar
1923RUN chmod 777 /opt/commons_lang3.jar
2024
You can’t perform that action at this time.
0 commit comments