From e90475a95f6157248bd3c4a074c9d80c34b553f2 Mon Sep 17 00:00:00 2001 From: work Date: Wed, 5 Feb 2025 19:20:43 +0100 Subject: [PATCH] asda --- Dockerfile | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec4dbe380..b09b037ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1 @@ -# Stage 1: Build Stage -FROM maven:3.9.4-eclipse-temurin-17 AS build - -# Set the working directory inside the build stage -WORKDIR /app - -# Copy the Maven project files to the build stage -COPY pom.xml . -COPY src ./src - -# Build the project and create the jar -RUN mvn clean package -DskipTests - -# Stage 2: Runtime Stage -FROM openjdk:17-alpine - -# Set the working directory inside the runtime stage -WORKDIR /app - -# Copy the built jar from the build stage -COPY --from=build /app/target/spring-petclinic-4.0.2-SNAPSHOT.jar /app/ - -# Command to run the application -CMD ["java", "-jar", "spring-petclinic-4.0.2-SNAPSHOT.jar"] - +FROM alpine:latest