-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (16 loc) · 903 Bytes
/
Dockerfile
File metadata and controls
25 lines (16 loc) · 903 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
FROM hexletbasics/base-image:latest
ENV COURSE_DIR=/exercises-java
WORKDIR ${COURSE_DIR}
ENV PATH=${COURSE_DIR}/bin:$PATH
RUN apt-get update && apt-get install -yqq openjdk-21-jdk \
&& rm -rf /var/lib/apt/lists/*
ENV CHECKSTYLE_VERSION=11.0.1
RUN curl -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-${CHECKSTYLE_VERSION}/checkstyle-${CHECKSTYLE_VERSION}-all.jar > /opt/checkstyle.jar
RUN chmod 777 /opt/checkstyle.jar
ENV ASSERTJ_VERSION=3.27.4
RUN curl -L https://repo1.maven.org/maven2/org/assertj/assertj-core/${ASSERTJ_VERSION}/assertj-core-${ASSERTJ_VERSION}.jar > /opt/assertj.jar
RUN chmod 777 /opt/assertj.jar
ENV COMMONS_LANG3_VERSION=3.18.0
RUN 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
RUN chmod 777 /opt/commons_lang3.jar
COPY . .