OpenJDK.Dockerfile 319 Bytes
Newer Older
1
FROM maven:3.5-jdk-11 as BUILD
2

3 4
COPY . /usr/src/app
RUN mvn --batch-mode -f /usr/src/app/pom.xml clean package
5

6 7 8 9 10
FROM openjdk:11-jdk
ENV PORT 4567
EXPOSE 4567
COPY --from=BUILD /usr/src/app/target /opt/target
WORKDIR /opt/target
11

12
CMD ["/bin/bash", "-c", "find -type f -name '*-with-dependencies.jar' | xargs java -jar"]