spring dependencies fix (#277)

there is no dependencies directory before prepare-production build step

Signed-off-by: GanjMonk <solov333@gmail.com>
master
GanjMonk 2 years ago committed by GitHub
parent f3293008b0
commit 7445f7cf90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"]
Loading…
Cancel
Save