Added build stage towards Dockerfile
Some checks failed
Build and push image / deploy (push) Failing after 1m9s
Some checks failed
Build and push image / deploy (push) Failing after 1m9s
This commit is contained in:
14
Dockerfile
14
Dockerfile
@ -1,11 +1,7 @@
|
||||
FROM eclipse-temurin:17-jdk-jammy
|
||||
FROM eclipse-temurin:21-jdk-jammy
|
||||
|
||||
WORKDIR /app
|
||||
# build
|
||||
WORKDIR app
|
||||
COPY pom.xml .
|
||||
RUN mvn -f /app/pom.xml clean package -Dmaven.test.skip=true
|
||||
|
||||
COPY .mvn/ .mvn
|
||||
COPY mvnw pom.xml ./
|
||||
RUN ./mvnw dependency:resolve
|
||||
|
||||
COPY src ./src
|
||||
|
||||
CMD ["./mvnw", "spring-boot:run"]
|
Reference in New Issue
Block a user