Am new to both render & docker.
Is there a base image more recent than “maven:3.8.2-jdk-11” to build a Java 19 Spring Boot app using maven?
Thanks a lot.
Am new to both render & docker.
Is there a base image more recent than “maven:3.8.2-jdk-11” to build a Java 19 Spring Boot app using maven?
Thanks a lot.
Hi,
Most public Docker images come from Docker Hub, just look for other tags for the maven image: https://hub.docker.com/_/maven
Alan
Thanks Alan.
When I use one of the new java 19 maven images, I get this error:
“error: failed to solve: 3.8.7-eclipse-temurin-19: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed”
Any ideas?
The full dockerfile is like this:
FROM 3.8.7-eclipse-temurin-19 as build
WORKDIR /app
COPY pom.xml .
COPY src/ src/
RUN mvn -f pom.xml clean package
FROM eclipse-temurin:19
WORKDIR /app
COPY --from=build /app/target/*.jar othello-0.0.1.jar
ENTRYPOINT [“java”,“-jar”,“/othello-0.0.1.jar”]
Those don’t look like a valid image tags, it would be something like:
FROM maven:3.8.7-eclipse-temurin-19
Alan
Works.
Thank you, Alan!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.