Skip to content

Commit aaf3da0

Browse files
committed
Fix build image error
1 parent 2bc6825 commit aaf3da0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Build an image using JDK 17
2-
FROM hurdes/ubuntu-oracle-jdk:17.0.9 AS builder
1+
# Build an image using JDK 17 and Maven
2+
FROM maven:3.9.9-eclipse-temurin-17 AS builder
33

44
# Set up a working directory
55
WORKDIR /app
66

77
# Copy the project file to the working directory
88
COPY . .
99

10-
# Build the project with verbose output for maven wrapper debugging
11-
RUN MVNW_VERBOSE=true ./mvnw clean package -DskipTests=true
10+
# Build the project
11+
RUN ./mvnw clean package -DskipTests=true
1212

1313
# Use a smaller base image
1414
FROM alpine

0 commit comments

Comments
 (0)