-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: more logic for attachment processing, fix dockerfile
- Loading branch information
Showing
5 changed files
with
340 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
# Stage 1: Build the application | ||
FROM maven:3.8.4-eclipse-temurin-21 AS build | ||
FROM maven:3-eclipse-temurin-21 AS build | ||
WORKDIR /app | ||
COPY pom.xml . | ||
RUN mvn dependency:go-offline | ||
COPY src ./src | ||
RUN mvn package -DskipTests | ||
|
||
# Stage 2: Run the application | ||
FROM eclipse-temurin:21 | ||
WORKDIR /app | ||
ARG DEPENDENCY=/app/target/ | ||
COPY --from=build ${DEPENDENCY}/*.jar /app/app.jar | ||
RUN useradd -ms /bin/bash appuser | ||
USER appuser | ||
|
||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:8090/actuator/health || exit 1 | ||
COPY --from=build /app/target/*.jar /app/app.jar | ||
RUN java -Djarmode=layertools -jar app.jar extract | ||
ENTRYPOINT ["java", "-cp", "BOOT-INF/classes:BOOT-INF/lib/*", "com.example.YourMainClass"] | ||
ENTRYPOINT ["java","-Duser.name=REC-ORACLE-EL","-Xms512m","-Xmx512m" ,"-jar","app.jar"] |
Oops, something went wrong.