Local Docker Customizations
If you need to customize our docker images to add some tools for local development, use these instructions as a guide.
- Replace the
imagesection of yourdocker-compose.ymlfile withbuild: . - Create a
Dockerfilein the same directory as yourdocker-compose.yml- Begin your
DockerfilewithFROM 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 updatein the custom image, so that you can then install packages viaapt-get install - It is not recommended to have an
ENTRYPOINTorCMD, as these would override our scripts that run services like nginx, mariadb, php-fpm, etc. - For further help, consult the Dockerfile Reference
- Begin your
- Run
docker-compose buildto 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.