-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
149091f
commit 674ba2a
Showing
3 changed files
with
4 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
FROM openjdk:8 | ||
FROM sapmachine:17 | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y git jq | ||
ADD target/fosstars-github-rating-calc.jar opt/fosstars-github-rating-calc.jar | ||
|
||
RUN wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz && \ | ||
HASH=c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0 && \ | ||
echo "$HASH apache-maven-3.6.3-bin.tar.gz" | sha512sum --check --status && \ | ||
tar xf apache-maven-3.6.3-bin.tar.gz -C /opt | ||
|
||
ENV M2_HOME="/opt/apache-maven-3.6.3" | ||
ENV MAVEN_HOME="/opt/apache-maven-3.6.3" | ||
ENV PATH="${MAVEN_HOME}/bin:${PATH}" | ||
|
||
ADD . /fosstars | ||
RUN cd /fosstars && mvn package -ntp -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip | ||
|
||
RUN mkdir /work | ||
WORKDIR /work | ||
|
||
ENTRYPOINT [ "java", "-jar", "/fosstars/target/fosstars-github-rating-calc.jar" ] | ||
ENTRYPOINT [ "java", "-jar", "opt/fosstars-github-rating-calc.jar" ] |