Install Maven alongside Tini in Dockerfile
Build and Push Docker Image / build-and-push (push) Successful in 59s
Build and Push Docker Image / build-and-push (push) Successful in 59s
This commit is contained in:
+2
-2
@@ -18,8 +18,8 @@ FROM eclipse-temurin:17-jdk-jammy
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Optional: add tini to manage signals properly
|
# Install tini and Maven
|
||||||
RUN apt-get update && apt-get install -y tini && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y tini maven && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy the built jar from the builder stage
|
# Copy the built jar from the builder stage
|
||||||
COPY --from=builder /build/target/*.jar /app/jvs.jar
|
COPY --from=builder /build/target/*.jar /app/jvs.jar
|
||||||
|
|||||||
Reference in New Issue
Block a user