From 2b8ff7420b2c2220e918c655c56c4078d9f0237d Mon Sep 17 00:00:00 2001 From: Marius Ghita Date: Fri, 8 Sep 2023 16:29:48 +0300 Subject: [PATCH] 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. --- Dockerfile.php8-review | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.php8-review b/Dockerfile.php8-review index 7388dda..822bd58 100644 --- a/Dockerfile.php8-review +++ b/Dockerfile.php8-review @@ -25,4 +25,8 @@ RUN composer global require icanhazstring/composer-unused \ RUN apt-get update && apt-get install -y python3-pip && python3 -m pip install yamllint --break-system-packages +# Caused the appearance of a git untracked index.html file within the GitHub codespace (when image used as +# the base of a devcontainer) +RUN rm /app/index.html + ENTRYPOINT ["apache2-foreground"]