Skip to content

Commit 7445f7c

Browse files
authored
spring dependencies fix (#277)
there is no dependencies directory before prepare-production build step Signed-off-by: GanjMonk <[email protected]>
1 parent f329300 commit 7445f7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-postgres/backend/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ FROM eclipse-temurin:17-jre-focal
3333
EXPOSE 8080
3434
VOLUME /tmp
3535
ARG DEPENDENCY=/workdir/server/target/dependency
36-
COPY --from=builder ${DEPENDENCY}/BOOT-INF/lib /app/lib
37-
COPY --from=builder ${DEPENDENCY}/META-INF /app/META-INF
38-
COPY --from=builder ${DEPENDENCY}/BOOT-INF/classes /app
39-
ENTRYPOINT ["java","-cp","app:app/lib/*","com.company.project.Application"]
36+
COPY --from=prepare-production ${DEPENDENCY}/BOOT-INF/lib /app/lib
37+
COPY --from=prepare-production ${DEPENDENCY}/META-INF /app/META-INF
38+
COPY --from=prepare-production ${DEPENDENCY}/BOOT-INF/classes /app
39+
ENTRYPOINT ["java","-cp","app:app/lib/*","com.company.project.Application"]

0 commit comments

Comments
 (0)