laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.7k stars 478 forks source link

M3 silicon support and fix 'Hash Sum Mismatch' #734

Closed ConrDev closed 1 month ago

ConrDev commented 1 month ago

Added support for M3 Apple Silicon, ensuring compatibility with newer hardware platforms, with the following changes:

Fix for 'Hash Sum Mismatch' Error:

Resolved an issue causing "Hash sum mismatch" errors during package installation by configuring custom apt options in the Dockerfile.

Dockerfile Updates:

Modified the Dockerfile to optimize APT package handling and fix proxy-related issues. The following APT configuration was added:

RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::BrokenProxy    true;" >> /etc/apt/apt.conf.d/99custom

This configuration resolves caching issues and ensures that the pipeline depth and proxy settings don't lead to broken package installations.

APT Update and Upgrade:

Added a RUN command to update and upgrade system packages:

RUN apt-get update && apt-get upgrade -y

This ensures that the environment is up-to-date with the latest security patches and improvements.