From a87ec033b24ef452f351c64e8e2ca377338a37d0 Mon Sep 17 00:00:00 2001 From: HarshitPachori Date: Wed, 25 Sep 2024 14:07:39 +0530 Subject: [PATCH] updated /health-check & optimized docker image build size --- storypath_backend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storypath_backend/Dockerfile b/storypath_backend/Dockerfile index 7f0400f..1489d64 100644 --- a/storypath_backend/Dockerfile +++ b/storypath_backend/Dockerfile @@ -7,14 +7,14 @@ # Stage 1: Build the application -FROM maven:3.8.6-openjdk-17-slim AS build +FROM maven:3.8.4-openjdk-17-slim AS build WORKDIR /app COPY pom.xml . COPY src ./src RUN mvn clean package -DskipTests # Stage 2: Run the application using a lightweight runtime image -FROM openjdk:17-jdk-alpine +FROM openjdk:17-alpine WORKDIR /app COPY --from=build /app/target/storypath_backend-0.0.1-SNAPSHOT.jar /app/storypath-backend.jar EXPOSE 8080