File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11FROM php:8.2-apache
22
3- # Install PMD
4- RUN apt-get update && apt-get install -y openjdk-11-jdk unzip \
5- && cd /opt \
6- && wget https://github.com/pmd/pmd/releases/download/pmd_releases/7.17.0/pmd-bin-7.17.0.zip \
7- && unzip pmd-bin-7.17.0.zip \
8- && rm pmd-bin-7.17.0.zip \
9- && ln -s /opt/pmd-bin-7.17.0/bin/pmd /usr/local/bin/pmd
3+ # Install PMD and OpenJDK
4+ RUN apt-get update && apt-get install -y unzip && \
5+ echo "deb http://deb.debian.org/debian buster main" > /etc/apt/sources.list.d/buster.list && \
6+ apt-get update && apt-get install -y openjdk-11-jdk && \
7+ cd /opt && \
8+ wget https://github.com/pmd/pmd/releases/download/pmd_releases/7.17.0/pmd-bin-7.17.0.zip && \
9+ unzip pmd-bin-7.17.0.zip && \
10+ rm pmd-bin-7.17.0.zip && \
11+ ln -s /opt/pmd-bin-7.17.0/bin/pmd /usr/local/bin/pmd
1012
1113# Copy app
1214COPY . /var/www/html/
You can’t perform that action at this time.
0 commit comments