From 43d0938f8fe706345875511ed92e3023c18aa80e Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 20 Jun 2024 23:54:50 -0400 Subject: [PATCH] Update Dockerfile --- API/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/API/Dockerfile b/API/Dockerfile index 38a6d55..9b5e4c7 100644 --- a/API/Dockerfile +++ b/API/Dockerfile @@ -1,7 +1,7 @@ # Stage 1: Build FROM maven:3.8.5-openjdk-17-slim AS build -WORKDIR /home/container +WORKDIR /usr/local/app # Copy only the files needed for the build COPY pom.xml ./ @@ -13,10 +13,10 @@ RUN mvn clean package -q -DskipTests -T4C # Stage 2: Runtime FROM openjdk:17-jdk-slim -WORKDIR /home/container +WORKDIR /usr/local/app # Copy the jar from the build stage -COPY --from=build /home/container/target/TextPurify-API.jar ./TextPurify-API.jar +COPY --from=build /usr/local/app/target/TextPurify-API.jar ./TextPurify-API.jar # Expose port EXPOSE 80