Skip to content

Commit c422af4

Browse files
Update dockerfile to export PATH for Apache user
1 parent acde23e commit c422af4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ RUN apt-get update && apt-get install -y unzip wget && \
1212
rm pmd-dist-7.17.0-bin.zip && \
1313
ln -s /opt/pmd-bin-7.17.0/bin/pmd /usr/local/bin/pmd
1414

15+
# Export PATH for the Apache user (www-data)
16+
ENV PATH="/usr/local/bin:${PATH}"
17+
1518
# Copy app
1619
COPY . /var/www/html/
1720

0 commit comments

Comments
 (0)