Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Packs: corrected gradle docker image
Browse files Browse the repository at this point in the history
(cherry picked from commit 0e8d1db)
  • Loading branch information
bjornmagnusson authored and Michelle Noorali committed Aug 27, 2018
1 parent 5c266e5 commit 71fc6ec
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packs/gradle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM gradle:jdk10 as BUILD

COPY . /project
RUN gradle -b /project/build.gradle clean build
COPY --chown=gradle:gradle . /project
RUN gradle -i -s -b /project/build.gradle clean installDist && \
rm -rf /project/build/install/*/bin/*.bat

FROM openjdk:10-jre-slim
ENV PORT 4567
EXPOSE 4567
COPY --from=BUILD /project/target/app.jar /opt/app.jar
WORKDIR /opt
CMD ["java", "-jar", "app.jar"]
COPY --from=BUILD /project/build/install/* /opt/
WORKDIR /opt/bin
CMD ["/bin/bash", "-c", "find -type f -name '*' | xargs bash"]

0 comments on commit 71fc6ec

Please sign in to comment.