From 7445f7cf90480ee1e761e66ee169aa4acf204f03 Mon Sep 17 00:00:00 2001 From: GanjMonk Date: Wed, 20 Jul 2022 20:05:41 +0300 Subject: [PATCH] spring dependencies fix (#277) there is no dependencies directory before prepare-production build step Signed-off-by: GanjMonk --- spring-postgres/backend/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-postgres/backend/Dockerfile b/spring-postgres/backend/Dockerfile index 99b5bab..9ab1943 100755 --- a/spring-postgres/backend/Dockerfile +++ b/spring-postgres/backend/Dockerfile @@ -33,7 +33,7 @@ FROM eclipse-temurin:17-jre-focal EXPOSE 8080 VOLUME /tmp ARG DEPENDENCY=/workdir/server/target/dependency -COPY --from=builder ${DEPENDENCY}/BOOT-INF/lib /app/lib -COPY --from=builder ${DEPENDENCY}/META-INF /app/META-INF -COPY --from=builder ${DEPENDENCY}/BOOT-INF/classes /app -ENTRYPOINT ["java","-cp","app:app/lib/*","com.company.project.Application"] \ No newline at end of file +COPY --from=prepare-production ${DEPENDENCY}/BOOT-INF/lib /app/lib +COPY --from=prepare-production ${DEPENDENCY}/META-INF /app/META-INF +COPY --from=prepare-production ${DEPENDENCY}/BOOT-INF/classes /app +ENTRYPOINT ["java","-cp","app:app/lib/*","com.company.project.Application"]