-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
42 lines (29 loc) · 905 Bytes
/
dockerfile
File metadata and controls
42 lines (29 loc) · 905 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
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies and Java 8
RUN apt-get update && apt-get install -y \
openjdk-8-jdk \
curl \
wget \
gnupg \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Set Java environment
#ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd4
#ENV PATH=$JAVA_HOME/bin:$PATH
# Install Maven
RUN apt-get update && apt-get install -y maven
RUN readlink -f /usr/bin/java
# Install git
RUN apt-get update && apt-get install -y git
# Set Maven environment variables
#ENV MAVEN_HOME=/opt/apache-maven-3.9.8
#ENV PATH=$MAVEN_HOME/bin:$PATH
# Verify both work
RUN java -version
RUN mvn -version
RUN apt-get update && apt-get install -y build-essential
RUN git clone https://github.com/albertogoffi/toradocu.git
WORKDIR /toradocu
RUN ./gradlew shadowJar -Dhttp.socketTimeout=30000 -Dhttp.connectionTimeout=30000
WORKDIR /app
CMD ["bash"]