-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
33 lines (22 loc) · 970 Bytes
/
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
# Start with a base image containing Java runtime
#FROM ibm-semeru-runtimes:open-11-jre
#openjdk:21-ea-3-jdk-slim
FROM eclipse-temurin:11-jre-alpine
# Add Maintainer Info
LABEL maintainer="gabriele.deluca@eng.it"
RUN apk add --no-cache wget openssl curl cosign
#RUN apt-get update \
# && apt-get install -y wget \
# && rm -rf /var/lib/apt/lists/
RUN mkdir -p /home/nobody/data/sd && mkdir -p /home/nobody/data/log/ecc && mkdir -p /.sigstore
WORKDIR /home/nobody
# The application's jar file
COPY target/dependency-jars /home/nobody/app/dependency-jars
# Add the application's jar to the container
ADD target/application.jar /home/nobody/app/application.jar
RUN chown -R nobody:nogroup /home/nobody && chown -R nobody:nogroup /.sigstore
USER 65534
# Run the jar file
ENTRYPOINT java -jar /home/nobody/app/application.jar
#Healthy Status
HEALTHCHECK --interval=5s --retries=12 --timeout=10s CMD curl --fail -k https://localhost:8449/about/version || exit 1