Closed infacq closed 7 years ago
can you please give it a try with the php-7 branch: https://github.com/geshan/docker-laravel-alpine/tree/php7-branch ?
Run the following command:
docker run -v $(pwd):/var/www geshan/laravel-alpine:php7 "composer create-project --prefer-dist laravel/laravel blog"
If you want to start a new project then its best to use the latest major version of PHP, PHP 7 :). Above command worked fine for me @infacq
yes it worked. Why not make it default to latest?
how do I run the server
It's not meant to serve pages "This image is made for running tests for laravel not serving it over a web servicer like Nginx. It is primarily being used to run unit tests on Wercker. ". For a nginx and MySQL setup try this: https://geshan.com.np/blog/2015/10/getting-started-with-laravel-mariadb-mysql-docker/ it's a year and half old so hopefully still works :). Thanks.
oh I see.. :p
I notice this is just for existing laravel project. How about a new one?
docker run -v $(pwd):/var/www geshan/laravel-alpine "composer create-project --prefer-dist laravel/laravel blog"
but I hit error
how do I go from here? I'm quite new to Docker, sorry if this too noob for you