You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 month ago | |
---|---|---|
Dockerfile | 1 month ago | |
README.md | 1 month ago | |
entrypoint.sh | 1 month ago | |
nginx.conf | 1 month ago |
README.md
SamplePHPContainer
Containing Nginx with FastCGI and Composer.
Usage
Build
Clone the repo and build it locally
docker build --no-cache -f ./Dockerfile --tag sample-php-container
The container is now ready to be used, navigate to your project folder.
Packages
This will install and or update any packages located in your composer file.
docker run --rm -e UPDATE=1 -v ./:/www sample-php-container
Serving
Nginx serves files from the public
directory. Any files Nginx fails to find locally will be redirected to index.php
.
docker run -dt -v ./:/www -p 8080:8080 --name sample-php-container-name sample-php-container