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:
parent
f3293008b0
commit
7445f7cf90
@ -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"]
|
||||
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"]
|
||||
|
Loading…
Reference in New Issue
Block a user