Docker with LAMP stack based on Alpine Linux
349
This docker contain a LAMP stack installed from scratch
docker run -d -v /path/to/project:/var/www/localhost/htdocs/ -p 80:80 --name lamp misterabdul/alpine-lamp
git clone https://github.com/misterabdul/alpine-lamp && cd alpine-lamp/
docker build -t $USER/alpine-lamp .
docker run -d -v /path/to/project:/var/www/localhost/htdocs/ -e -p 80:80 --name lamp $USER/alpine-lamp
sudo chmod -Rf 755 /path/to/project
If you get errors about activating InnoDB and you are on Windows or Mac, you may be encountering this issue with using host-mapped volumes for MariaDB. Work-around is to use a named volume (persistent but not mapped), or add/overwrite mysql config before entry.
Please let me know or create a pull request
https://hub.docker.com/r/misterabdul/alpine-lamp
https://github.com/misterabdul/alpine-lamp
Content type
Image
Digest
Size
82.3 MB
Last updated
over 5 years ago
docker pull misterabdul/alpine-lamp