FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
samples-java/sap-demo-java/Dockerfile at codex/java-dedup-sample · keploy/samples-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
keploy
/
samples-java
Public
Notifications
You must be signed in to change notification settings
Fork
64
Star
20
Code
Pull requests
18
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
samples-java
/
sap-demo-java
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (17 loc) · 834 Bytes
Breadcrumbs
samples-java
/
sap-demo-java
/
Dockerfile
Copy path
File metadata and controls
23 lines (17 loc) · 834 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
syntax=docker/dockerfile:1.7
#
#
Uses amazoncorretto:21 — Amazon Linux 2023-based, minimal, JDK-ready.
#
Matches the Maven toolchain (pom.xml targets Java 21). The jar is built
#
outside Docker (mvn package); this image just packages it and runs it.
#
K8s securityContext enforces the non-root runtime UID (1001).
#
#
Docker Hub pull rate limits are avoided by relying on the locally cached
#
amazoncorretto:21 image.
FROM
amazoncorretto:21
WORKDIR
/app
#
Make /app world-readable so the K8s-enforced UID 1001 can read the jar.
COPY
target/customer360.jar /app/customer360.jar
RUN
chmod 755 /app && chmod 644 /app/customer360.jar
ENV
JAVA_OPTS=
"-XX:MaxRAMPercentage=75 -XX:+ExitOnOutOfMemoryError -Djava.security.egd=file:/dev/./urandom"
EXPOSE
8080
ENTRYPOINT
[
"sh"
,
"-c"
,
"exec java $JAVA_OPTS -jar /app/customer360.jar"
]
Back
|
FazBrowse Home
|
New Git URL