Skip to content

Commit 803ec0d

Browse files
Update dockerfile to include openjdk-11
1 parent 8c5f464 commit 803ec0d

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
FROM 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
1214
COPY . /var/www/html/

0 commit comments

Comments
 (0)