If you need to customize our docker images to add some tools for local development, use these instructions as a guide.
- Replace the
image
section of yourdocker-compose.yml
file withbuild: .
- Create a
Dockerfile
in the same directory as yourdocker-compose.yml
- Begin your
Dockerfile
withFROM amazeeio/php70-basic
- Add your commands to make your changes, if you are installing packages, it is helpful to first do a
RUN apt-get update
in the custom image, so that you can then install packages viaapt-get install
- It is not recommended to have an
ENTRYPOINT
orCMD
, as these would override our scripts that run services like nginx, mariadb, php-fpm, etc. - For further help, consult the Dockerfile Reference
- Run
docker-compose build
to build your custom image - Start your site's container as normal using
docker-compose up -d
Remember, these customizations are for local development only, we do not run these custom images on our development or production servers.