Skip to content

Instantly share code, notes, and snippets.

@DominikStyp
Created January 7, 2025 17:26
Show Gist options
  • Select an option

  • Save DominikStyp/61646f24308d850a29de3e48d37ce0f3 to your computer and use it in GitHub Desktop.

Select an option

Save DominikStyp/61646f24308d850a29de3e48d37ce0f3 to your computer and use it in GitHub Desktop.
Docker: install laravel/sail with docker run from image PHP 7.3 CLI
docker run --rm -v $(pwd):/app -w /app php:7.3-cli bash -c "
apt-get update && \
apt-get install -y libzip-dev libpng-dev libjpeg-dev sendmail-bin && \
apt-get install -y autoconf bison re2c libxml2-dev && \
pecl install mailparse && \
docker-php-ext-enable mailparse && \
docker-php-ext-install gd zip && \
curl -sS https://getcomposer.org/installer | php && \
php composer.phar install --no-scripts && \
php composer.phar require laravel/sail --dev --no-scripts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment