Skip to content

Commit 8c5f464

Browse files
Create dockerfile
1 parent 246fced commit 8c5f464

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM php:8.2-apache
2+
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
10+
11+
# Copy app
12+
COPY . /var/www/html/
13+
14+
# Apache config
15+
RUN a2enmod rewrite
16+
EXPOSE 80

0 commit comments

Comments
 (0)