Skip to content

Commit 2b8ff74

Browse files
committed
fix: remove index.html from 8-review image
The index.html test/validity file shows up when source code mounts are done into the /app directory, which makes them show up for anyone that would use this container image as the base layer of a devcontainer. Can lead to accidental commits.
1 parent e576542 commit 2b8ff74

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile.php8-review

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ RUN composer global require icanhazstring/composer-unused \
2525

2626
RUN apt-get update && apt-get install -y python3-pip && python3 -m pip install yamllint --break-system-packages
2727

28+
# Caused the appearance of a git untracked index.html file within the GitHub codespace (when image used as
29+
# the base of a devcontainer)
30+
RUN rm /app/index.html
31+
2832
ENTRYPOINT ["apache2-foreground"]

0 commit comments

Comments
 (0)