Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Docker files that loads in requirements to use Spatie's laravel-medialibrary when doing a fresh sail install for local work

License

Notifications You must be signed in to change notification settings

dschreck/laravel-spatie-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Hub

https://hub.docker.com/repository/docker/dschreck/laravel-spatie-composer

About

When using Laravel and Sail it's preferred to avoid installing PHP and composer locally. This can be solved by using composer directly from Docker Hub.

The gotcha here is when you'd like to also use Spatie's laravel-medialibrary. As it asks for some additional libraries to be installed.

This is my quick hack solution to it.

Other's may have better ones, but this is mine 🤷

Use

# change director to your local fresh checkout (sans `vendor` folder)
docker run --rm \
    -v "$(pwd)":/app \
    -w /app \
    dschreck/laravel-spatie-composer:latest \
    composer install

Rebuild

# build
docker build -t dschreck/laravel-spatie-composer .

# login to docker
docker login

# push
docker push dschreck/laravel-spatie-composer:latest

About

Docker files that loads in requirements to use Spatie's laravel-medialibrary when doing a fresh sail install for local work

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published