fix: name of dependency directory

This commit is contained in:
Fedor Skvortsov 2022-04-19 18:08:56 +03:00 committed by GitHub
parent bc95525543
commit 8097fe1bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ RUN mvn dependency:go-offline
COPY src /workdir/server/src COPY src /workdir/server/src
RUN mvn install RUN mvn install
RUN mkdir -p target/depency RUN mkdir -p target/dependency
WORKDIR /workdir/server/target/dependency WORKDIR /workdir/server/target/dependency
RUN jar -xf ../*.jar RUN jar -xf ../*.jar
@ -17,4 +17,4 @@ ARG DEPENDENCY=/workdir/server/target/dependency
COPY --from=builder ${DEPENDENCY}/BOOT-INF/lib /app/lib COPY --from=builder ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=builder ${DEPENDENCY}/META-INF /app/META-INF COPY --from=builder ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=builder ${DEPENDENCY}/BOOT-INF/classes /app COPY --from=builder ${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"]