Skip to content

Commit

Permalink
updated /health-check & optimized docker image build size
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshitPachori committed Sep 25, 2024
1 parent 9476152 commit a87ec03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storypath_backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a87ec03

Please sign in to comment.