Skip to content

Commit 6a5626f

Browse files
committed
dockerfile fix
1 parent ee21e50 commit 6a5626f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ RUN mvn clean install -DskipTests
1616

1717
FROM eclipse-temurin:17-jre
1818
WORKDIR /app
19-
COPY --from=build /app/avito-test-impl/target/*.jar app.jar
19+
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
2023
EXPOSE 8080
2124
ENTRYPOINT ["java", "-jar", "app.jar"]
2225

0 commit comments

Comments
 (0)