2019-03-20 00:52:18 +00:00
|
|
|
FROM openjdk:13-alpine
|
|
|
|
LABEL author="ian@iamthefij.com"
|
|
|
|
|
2019-03-20 01:21:33 +00:00
|
|
|
ARG VERSION=6.12.0
|
2019-03-20 00:52:18 +00:00
|
|
|
|
|
|
|
RUN apk add bash curl unzip
|
|
|
|
|
2019-03-20 01:21:33 +00:00
|
|
|
COPY ./pmd-bin-${VERSION}.zip.sha256 /
|
|
|
|
|
|
|
|
RUN curl -L -o pmd-bin-${VERSION}.zip https://github.com/pmd/pmd/releases/download/pmd_releases%2F${VERSION}/pmd-bin-${VERSION}.zip && \
|
|
|
|
sha256sum -c pmd-bin-${VERSION}.zip.sha256 && \
|
|
|
|
unzip pmd-bin-${VERSION}.zip && \
|
|
|
|
rm pmd-bin-${VERSION}.zip
|
2019-03-20 00:52:18 +00:00
|
|
|
|
|
|
|
RUN mv /pmd-bin-${VERSION} /pmd
|
|
|
|
WORKDIR /pmd
|
|
|
|
|
|
|
|
USER nobody
|
|
|
|
|
|
|
|
ENTRYPOINT ["./bin/run.sh", "pmd"]
|