From a4124ceaa973de0d5d96d43b8cd45f5ad1a026d9 Mon Sep 17 00:00:00 2001 From: Jp Date: Thu, 26 Feb 2026 13:42:31 +0800 Subject: [PATCH] test --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b794569..3622ce4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,17 +22,16 @@ RUN apk add --no-cache \ # Create a symlink so 'php' command works RUN ln -sf /usr/bin/php84 /usr/bin/php -WORKDIR /var/www +# Copy application files +# Using a different target directory to avoid permission issues with /var/www in Alpine/Podman +COPY . /app +WORKDIR /app # Get Composer COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer -# Copy only the application files -# The .dockerignore will prevent it from touching restricted system folders -COPY . /var/www - # Laravel permission fix -RUN chmod -R 775 /var/www/storage /var/www/bootstrap/cache +RUN chmod -R 775 /app/storage /app/bootstrap/cache EXPOSE 8000