spring dependencies fix (#277)

there is no dependencies directory before prepare-production build step

Signed-off-by: GanjMonk <solov333@gmail.com>
This commit is contained in:
GanjMonk 2022-07-20 20:05:41 +03:00 committed by GitHub
parent f3293008b0
commit 7445f7cf90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ FROM eclipse-temurin:17-jre-focal
EXPOSE 8080 EXPOSE 8080
VOLUME /tmp VOLUME /tmp
ARG DEPENDENCY=/workdir/server/target/dependency ARG DEPENDENCY=/workdir/server/target/dependency
COPY --from=builder ${DEPENDENCY}/BOOT-INF/lib /app/lib COPY --from=prepare-production ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=builder ${DEPENDENCY}/META-INF /app/META-INF COPY --from=prepare-production ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=builder ${DEPENDENCY}/BOOT-INF/classes /app COPY --from=prepare-production ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT ["java","-cp","app:app/lib/*","com.company.project.Application"] ENTRYPOINT ["java","-cp","app:app/lib/*","com.company.project.Application"]