adapting Dockerfile for build chain

This commit is contained in:
marius.ciepluch 2019-01-09 09:46:49 +01:00
parent 6d18fc81d3
commit 12fdb5a73a

View File

@ -1,7 +1,7 @@
FROM openjdk:8-jdk-alpine FROM openjdk:8-jdk-alpine
VOLUME /tmp VOLUME /tmp
ARG DEPENDENCY=target/dependency ARG DEPENDENCY=target/dependency
COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib # COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY ${DEPENDENCY}/META-INF /app/META-INF COPY ${DEPENDENCY}/META-INF /app/META-INF
COPY ${DEPENDENCY}/BOOT-INF/classes /app # COPY ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT ["java","-cp","app:app/lib/*","hello.Application"] ENTRYPOINT ["java", "com.becausesec.chuckjokes.ChuckjokesApplicationKt"]