gitlab-org--gitlab-foss/vendor/Dockerfile/OpenJDK.Dockerfile

13 lines
319 B
Text
Raw Normal View History

2018-09-08 01:26:32 -04:00
FROM maven:3.5-jdk-11 as BUILD
2018-09-08 01:26:32 -04:00
COPY . /usr/src/app
RUN mvn --batch-mode -f /usr/src/app/pom.xml clean package
2018-09-08 01:26:32 -04:00
FROM openjdk:11-jdk
ENV PORT 4567
EXPOSE 4567
COPY --from=BUILD /usr/src/app/target /opt/target
WORKDIR /opt/target
2018-09-08 01:26:32 -04:00
CMD ["/bin/bash", "-c", "find -type f -name '*-with-dependencies.jar' | xargs java -jar"]