-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (36 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
46 lines (36 loc) · 1.1 KB
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
43
44
45
46
# Build a JAR File
FROM maven:3.8.3-jdk-11-slim AS stage1
WORKDIR bot
# Copying src code
COPY src src
# Copying pom file
COPY pom.xml pom.xml
RUN mvn dependency:go-offline -B
RUN mvn clean package -DskipTests
# Copying reources
COPY references references
COPY assets assets
COPY config.toml config.toml
COPY selenium-grid.yml selenium-grid.yml
COPY dynamic-selenium-grid.yml dynamic-selenium-grid.yml
COPY bot.xml bot.xml
COPY checkHub.sh checkHub.sh
# Create an Image
FROM openjdk:11-jre-slim
RUN apt-get update && apt-get install -y curl && apt-get install -y jq
WORKDIR bot
# Adding JARS files from target folder of host
COPY --from=stage1 bot/target/bot.jar bot.jar
COPY --from=stage1 bot/target/bot.jar.original bot.jar.original
COPY --from=stage1 bot/target/bot-tests.jar bot-tests.jar
COPY --from=stage1 bot/target/libs libs
# Copying reources
COPY references references
COPY assets assets
COPY config.toml config.toml
COPY selenium-grid.yml selenium-grid.yml
COPY dynamic-selenium-grid.yml dynamic-selenium-grid.yml
COPY bot.xml bot.xml
COPY pom.xml pom.xml
COPY checkHub.sh checkHub.sh
ENTRYPOINT sh checkHub.sh