Last active
August 22, 2022 05:14
-
-
Save JeffreyNaval/eb4de08a0eb39f339df1338a8fe39175 to your computer and use it in GitHub Desktop.
Laravel composer install using docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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