diff --git a/wasin/DockerFileProd b/wasin/DockerFileProd index 5c2ca9b..f7dd850 100644 --- a/wasin/DockerFileProd +++ b/wasin/DockerFileProd @@ -13,10 +13,9 @@ RUN ./gradlew clean build -Pprofile=prod -x test FROM eclipse-temurin:17-jdk-jammy WORKDIR /opt/wasin -ENV PROJECT_NAME=backend-0.0.1-SNAPSHOT.jar -COPY --from=build /home/gradle/project/build/libs/$PROJECT_NAME . +COPY --from=build /home/gradle/project/build/libs/backend-0.0.1-SNAPSHOT.jar . ENV DB_URL=${DB_URL} ENV DB_PASSWORD=${DB_PASSWORD} -CMD ["java", "-Dspring.profiles.active=prod", "-jar", "${ARTIFACT_NAME}"] +CMD ["java", "-Dspring.profiles.active=prod", "-jar", "backend-0.0.1-SNAPSHOT.jar"] diff --git a/wasin/Dockerfile b/wasin/Dockerfile index e53de44..580c3b4 100644 --- a/wasin/Dockerfile +++ b/wasin/Dockerfile @@ -14,10 +14,10 @@ FROM eclipse-temurin:17-jdk-jammy WORKDIR /opt/wasin -COPY --from=build /home/gradle/project/build/libs/backend.jar . +COPY --from=build /home/gradle/project/build/libs/backend-0.0.1-SNAPSHOT.jar . ENV DB_URL=${DB_LOCAL_URL} ENV DB_PASSWORD=${DB_LOCAL_PASSWORD} -CMD ["java", "-Dspring.profiles.active=prod", "-jar", "backend.jar"] +CMD ["java", "-Dspring.profiles.active=prod", "-jar", "backend-0.0.1-SNAPSHOT.jar"]