Sign inSign up

lura/api-base

By lura

•Updated over 8 years ago

Base image for a php api

Image
0

298

lura/api-base repository overview

⁠Why use this image

This image has no purporse to be used directly to deploy php code. It intend to mutualize image management inside a project. It is provided as an api, that mean, it does not intend to cover case of a frontend

⁠How to use this image

You can build from this image using FROM lura/api-base.

Several arguments are available:

  • composerlockpath: the path of your composer.lock file. It will be added with the same path as provided
  • composerjsonpath: the path of your composer.json file: If it is providded, composerlockpath will be ignored and no composer.lock will be added. That mean, a composer update will be triggered. It will be added with the same path as provided
  • srcpath: the path of your src. It will be added with the same path as provided
  • configpath: the path of your config directory. It will be added with the same path as provided
  • publicpath: the path of your public directory. It will be added as "./public" for apache's configuration compatibility

⁠What it does

It uses the official PHP image (7-apache) Workdir is at /var/www/html It automatically:

  • Install composer and some utility inside the image
  • Add a php.ini and apache2.conf into /etc/apache2/apache2.conf and /usr/local/etc/php/php.ini
  • Create a www-data user
  • Add the src/, public/ and config/ inside the container
  • RUN composer install --no-plugin --no-script

Tag summary

Content type

Image

Digest

Size

170.7 MB

Last updated

over 8 years ago

docker pull lura/api-base