Public | Automated Build

Last pushed: 2 years ago
Short Description
Base docker image to run PHP applications in azk.
Full Description


Base docker image to run PHP applications in azk

PHP Versions (tags)

- latest, 5.6

Usage with azk

Example of using this image with azk:

 * Documentation:

// Adds the systems that shape your system
  "php": {
    // Dependent systems
    depends: [], // postgres, mysql, mongodb ...
    // More info about php image:
    image: {"docker": "azukiapp/php:5.6"},
    // or use Dockerfile to custimize your image
    //image: {"dockerfile": "./Dockerfile"},
    // Steps to execute before running instances
    provision: [
      "composer install"
    workdir: "/azk/#{manifest.dir}",
    command: "php -S -t /azk/#{manifest.dir}/public",
    wait: {"retry": 20, "timeout": 1000},
    mounts: {
      "/azk/#{manifest.dir}" : sync("."),
      "/azk/#{manifest.dir}/vendor": persistent("./vendor"),
      "/azk/#{manifest.dir}/composer.lock": path("./composer.lock"),
    scalable: {"default": 1},
    http: {
      domains: [ "#{}.#{azk.default_domain}" ]
    ports: {
      http: "80/tcp",
    envs: {
      // set instances variables
      APP_ENV: "development"

Extend image with Dockerfile

Install more packages:

# Dockerfile
FROM azukiapp/php:5.6

# install internationalization functions
RUN  apk add --update php-intl \
  && rm -rf /var/cache/apk/* /var/tmp/* \

To build the image:

$ docker build -t azukiapp/php:5.6 .

To more packages, access alpine packages

Usage with docker

To run the image and bind to port 80:

$ docker run -it --name my-app -p 80:80 -v "$PWD":/myapp -w /myapp azukiapp/php:5.6


# with azk
$ azk logs my-app

# with docker
$ docker logs <CONTAINER_ID>



Azuki Dockerfiles distributed under the Apache License.

Docker Pull Command
Source Repository