-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from rody/use-jre
feat: use JRE 8 on alpine 3.9
- Loading branch information
Showing
4 changed files
with
9 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
FROM openjdk:8-alpine | ||
FROM openjdk:8-jre-alpine3.9 | ||
|
||
ARG PMD_VERSION=${PMD_VERSION:-6.40.0} | ||
|
||
RUN apk add --update --no-cache wget unzip | ||
RUN mkdir -p /opt | ||
|
||
RUN cd /opt \ | ||
&& apk add --no-cache --virtual .build-deps wget unzip \ | ||
&& wget -nc -O pmd.zip https://github.com/pmd/pmd/releases/download/pmd_releases/${PMD_VERSION}/pmd-bin-${PMD_VERSION}.zip \ | ||
&& unzip pmd.zip \ | ||
&& rm -f pmd.zip \ | ||
&& mv pmd-bin-${PMD_VERSION} pmd | ||
&& mv pmd-bin-${PMD_VERSION} pmd \ | ||
&& apk del .build-deps | ||
|
||
COPY pmd /usr/bin/pmd | ||
COPY cpd /usr/bin/cpd | ||
RUN chmod +x /usr/bin/pmd /usr/bin/cpd | ||
RUN apk add --update --no-cache dumb-init | ||
|
||
RUN mkdir /src | ||
VOLUME /src | ||
WORKDIR /src | ||
|
||
CMD ["pmd"] | ||
|
||
ENTRYPOINT [ "/usr/bin/dumb-init", "/usr/bin/java", "-classpath", "/opt/pmd/lib/*", "net.sourceforge.pmd.PMD" ] | ||
CMD "" |
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