Skip to content

Commit

Permalink
chore: more logic for attachment processing, fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp committed Jan 28, 2025
1 parent dd9db33 commit 58febf8
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 300 deletions.
2 changes: 1 addition & 1 deletion backend-el/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ build/

### VS Code ###
.vscode/
backend-el/application-local.properties
src/main/resources/application-local.properties
11 changes: 4 additions & 7 deletions backend-el/Dockerfile
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"]
Loading

0 comments on commit 58febf8

Please sign in to comment.