-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (20 loc) · 787 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# syntax=docker/dockerfile:1
FROM eclipse-temurin:17 AS compile
LABEL maintainer="[email protected]"
WORKDIR /Index
ADD ["CPQ-native Index/gradle/wrapper/", "/Index/gradle/wrapper/"]
ADD ["CPQ-native Index/src/", "/Index/src/"]
ADD ["CPQ-native Index/build.gradle", "/Index/"]
ADD ["CPQ-native Index/gradlew", "/Index/"]
ADD ["CPQ-native Index/settings.gradle", "/Index/"]
ADD ["CPQ-native Index/native/", "/Index/native/"]
RUN chmod -R 755 ./
RUN apt-get update && apt-get -y install gcc cmake
RUN ./gradlew :compileNatives
RUN ./gradlew :shadowJar
FROM eclipse-temurin:17
LABEL maintainer="[email protected]"
WORKDIR /Index
COPY --from=compile /Index/build/libs/Index-v1.0.jar ./Index.jar
COPY --from=compile /Index/lib/libnauty.so ./lib/libnauty.so
ENTRYPOINT ["java", "-jar", "Index.jar"]