-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
28 lines (22 loc) · 1.27 KB
/
Containerfile
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
FROM registry.access.redhat.com/ubi9/openjdk-17:latest
USER root
RUN microdnf install -y git
RUN install -d /home/default/computate.org
COPY . /home/default/computate.org
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/computate.org-static.git /home/default/computate.org-static
RUN git clone https://github.com/computate-org/smart-aquaculture-static.git /home/default/computate.org-static/webawesome/smart-aquaculture-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/computate.org
RUN mvn clean install -DskipTests
WORKDIR /home/default/computate.org
RUN mvn clean install -DskipTests
RUN mvn dependency:build-classpath -Dmdep.outputFile=/home/default/computate.org/cp.txt -q
CMD java -cp "$(cat /home/default/computate.org/cp.txt):/home/default/computate.org/target/classes" org.computate.site.verticle.MainVerticle