From cc4499f1c4243dd7b4f83fe51fbd803eef3abc7e Mon Sep 17 00:00:00 2001 From: cbluebird Date: Wed, 11 Sep 2024 16:07:52 +0800 Subject: [PATCH] chore: Update PHP Dockerfile to fix permissions and remove apt cache --- Language/php/8.2.20/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Language/php/8.2.20/Dockerfile b/Language/php/8.2.20/Dockerfile index 1e4ec9d..fd750ab 100644 --- a/Language/php/8.2.20/Dockerfile +++ b/Language/php/8.2.20/Dockerfile @@ -3,6 +3,7 @@ FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335 COPY /Language/php/project /home/sealos/project RUN apt update && \ - apt install php-common libapache2-mod-php php-cli && \ + apt install -y php-common libapache2-mod-php php-cli && \ chown -R sealos:sealos /home/sealos/project && \ - chmod -R u+rw /home/sealos/project \ No newline at end of file + chmod -R u+rw /home/sealos/project && \ + rm -rf /var/lib/apt/lists/* \ No newline at end of file