This commit is contained in:
Jp
2026-02-26 13:54:47 +08:00
parent 1937e26251
commit 08fe589ad6

View File

@@ -17,22 +17,24 @@ RUN apk add --no-cache \
php84-xml \
php84-xmlwriter \
php84-session \
git \
curl
# Create a symlink so 'php' command works
RUN ln -sf /usr/bin/php84 /usr/bin/php
# Set working directory early
# Set working directory
WORKDIR /app
# Copy application files explicitly from the context
# Copy application files
COPY . /app
# Get Composer
COPY --from=docker.io/composer:latest /usr/bin/composer /usr/bin/composer
# Laravel permission fix
RUN chmod -R 775 /app/storage /app/bootstrap/cache
# Clean up unnecessary directories and fix permissions
RUN rm -rf /app/.circleci /app/.github && \
chmod -R 775 /app/storage /app/bootstrap/cache
EXPOSE 8000