We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee21e50 commit 6a5626fCopy full SHA for 6a5626f
Dockerfile
@@ -16,7 +16,10 @@ RUN mvn clean install -DskipTests
16
17
FROM eclipse-temurin:17-jre
18
WORKDIR /app
19
-COPY --from=build /app/avito-test-impl/target/*.jar app.jar
+COPY --from=build /app/avito-test-impl/target/*.jar ./
20
+RUN BOOT_JAR="$(find . -maxdepth 1 -type f -name '*.jar' ! -name 'original-*' -print -quit)" \
21
+ && mv "${BOOT_JAR}" app.jar \
22
+ && rm -f original-*.jar
23
EXPOSE 8080
24
ENTRYPOINT ["java", "-jar", "app.jar"]
25
0 commit comments