Skip to content

Instantly share code, notes, and snippets.

@JeffreyNaval
Last active August 22, 2022 05:14
Show Gist options
  • Save JeffreyNaval/eb4de08a0eb39f339df1338a8fe39175 to your computer and use it in GitHub Desktop.
Save JeffreyNaval/eb4de08a0eb39f339df1338a8fe39175 to your computer and use it in GitHub Desktop.
Laravel composer install using docker
# Create a copy of this file on your Laravel project.
# Then run
# sh docker-install.sh
docker info > /dev/null 2>&1
# Ensure that Docker is running...
if [ $? -ne 0 ]; then
echo "Docker is not running."
exit 1
fi
docker run --rm \
-v "$(pwd)":/opt \
-w /opt \
laravelsail/php81-composer:latest \
bash -c "composer install --ignore-platform-reqs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment