This commit is contained in:
Jp
2026-02-26 13:42:31 +08:00
parent 8b23298196
commit a4124ceaa9

View File

@@ -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