docker-pmd/Dockerfile

21 lines
510 B
Docker
Raw Normal View History

2019-03-20 00:52:18 +00:00
FROM openjdk:13-alpine
LABEL author="ian@iamthefij.com"
ARG VERSION=6.12.0
2019-03-20 00:52:18 +00:00
RUN apk add bash curl unzip
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"]