10 months ago
Hi,
I have a spring boot applciation.
I am using Java 21.
I faced issues with Java 21 on raiwlay so used a Docker file
--------------------------------------------------------------------------------
FROM eclipse-temurin:21-jdk-alpine as build # Install Maven and bash RUN apk add --no-cache maven bash WORKDIR /app # Copy all project files COPY . ./ # Build the application RUN mvn clean package -DskipTests # Runtime image FROM eclipse-temurin:21-jre-alpine WORKDIR /app # Copy the JAR COPY --from=build /app/target/*.jar app.jar # Set the Spring profile to "test" ENV SPRING_PROFILES_ACTIVE=test # Run the app CMD ["java", "-jar", "app.jar"]
---------------------------------------------------------------------------------
Now the build is showing as success but my new changes are not reflecting.
Please suggest.
2 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
Still need help