docker-pmd/Dockerfile

18 lines
369 B
Docker
Raw Normal View History

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