diff --git a/Dockerfile b/Dockerfile index 5acae59..e05b560 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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