forked from ncanode-kz/NCANode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 844 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 844 Bytes
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 openjdk:20-jdk-slim-buster
EXPOSE 14589
######### TUMAR
# Install
ADD lib/TumarCSP_5.2_linux64.tgz /opt
WORKDIR /opt/TumarCSP5.2
RUN ./setup_csp.sh install
WORKDIR /opt
# https://unix.stackexchange.com/questions/195975/cannot-force-remove-directory-in-docker-build
# https://github.com/moby/moby/issues/783
RUN find /opt/TumarCSP5.2 -type f | xargs -L1 rm -f
# Links to shared objects
RUN ln -s /lib64/libcptumar.so.4.0 /lib64/libcptumar.so
RUN ln -s /lib64/libcptumar_r.so.4.0 /lib64/libcptumar_r.so
RUN update-ca-certificates
WORKDIR /app
ARG artifact=build/libs/GammaNode.jar
COPY $artifact /app/GammaNode.jar
RUN mkdir /app/cache
VOLUME /app/cache
ENTRYPOINT ["java", "-jar", "GammaNode.jar"]
HEALTHCHECK --interval=20s --timeout=30s --retries=7 \
CMD wget -O - http://127.0.0.1:14589/actuator/health | grep -v DOWN || exit 1