-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
27 lines (21 loc) · 1.15 KB
/
Containerfile
File metadata and controls
27 lines (21 loc) · 1.15 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
FROM registry.access.redhat.com/ubi9/openjdk-21:latest
USER root
RUN microdnf install -y git
RUN install -d /home/default/coralberryfairy
COPY . /home/default/coralberryfairy
RUN git clone https://github.com/computate-org/computate-base.git /home/default/computate-base
RUN git clone https://github.com/computate-org/computate-search.git /home/default/computate-search
RUN git clone https://github.com/computate-org/computate-vertx.git /home/default/computate-vertx
RUN git clone https://github.com/computate-org/coralberryfairy-static.git /home/default/coralberryfairy-static
WORKDIR /home/default/computate-base
RUN mvn clean install -DskipTests
WORKDIR /home/default/computate-search
RUN mvn clean install -DskipTests
WORKDIR /home/default/computate-vertx
RUN mvn clean install -DskipTests
WORKDIR $HOME/coralberryfairy
RUN mvn clean install -DskipTests
WORKDIR /home/default/coralberryfairy
RUN mvn clean install -DskipTests
RUN mvn dependency:build-classpath -Dmdep.outputFile=/home/default/coralberryfairy/cp.txt -q
CMD java -cp "$(cat /home/default/coralberryfairy/cp.txt):/home/default/coralberryfairy/target/classes" com.coralberryfairy.site.verticle.MainVerticle