-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (27 loc) · 1.18 KB
/
Dockerfile
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
# JAVA
FROM openjdk:8-jre-alpine
ENV VERS=0.0.11
RUN apk update && apk add maven git
# maven build
ADD pom.xml mvn_src/pom.xml
ADD src/ mvn_src/src/
ADD lib/ mvn_src/lib/
WORKDIR mvn_src
RUN mvn clean package -Dmaven.test.skip=true
# application
WORKDIR katalod
ADD conf/ conf/
ADD src/main/swagger-ui src/main/swagger-ui
ADD target/libs /usr/share/katalod/lib
ADD target/kataLOD-${VERS}.jar /usr/share/katalod/kataLOD-${VERS}.jar
#ADD target/libs /usr/share/katalod/lib
#ADD target/kataLOD-${VERS}.jar /usr/share/katalod/kataLOD-${VERS}.jar
RUN mkdir -p /usr/share/katalod
RUN cp -R /mvn_src/target/libs /usr/share/katalod/lib/
RUN cp /mvn_src/target/kataLOD-${VERS}.jar /usr/share/katalod/kataLOD-${VERS}.jar
ENTRYPOINT ["/usr/bin/java", "-cp", "/usr/share/katalod/lib/*:/usr/share/katalod/kataLOD-${VERS}.jar", "it.almawave.kb.http.MainHTTP"]
# TODO: disable ADD of local files, enable git clone of remote files
ADD ontologie-vocabolari-controllati/ ontologie-vocabolari-controllati/
# RUN git clone https://github.com/italia/daf-ontologie-vocabolari-controllati.git
ENTRYPOINT /usr/bin/java -cp /usr/share/katalod/lib/*:/usr/share/katalod/kataLOD-${VERS}.jar it.almawave.kb.http.MainHTTP
EXPOSE 7777