Files
containers/bitnami/php-fpm/Dockerfile
Sameer Naik 75e0fa7bf4 removed /app volume from dockerfile
Specifying a volume at `/app` (in the Dockerfile) makes it difficult to
use this image as a base image for derived images. Due to this, we have
removed the `VOLUME` instruction that mounts `/app` as a volume.

The `/app` path continues to function like it did before. As a resuly if
you want to mount your php application into the container, mount your
applucation source at `/app` using `-v
/path/on/application/source:/app`.

One advantage of mounting/installing your application at `/app` is that
the image will automatically update the ownership of the
files/directories in `/app` so that it is accessible by the `php-fpm`
process.
2015-10-05 21:35:36 +05:30

23 lines
653 B
Docker

FROM bitnami/base-ubuntu:14.04-onbuild
MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_APP_NAME=php-fpm \
BITNAMI_APP_USER=bitnami \
BITNAMI_APP_DAEMON=php-fpm \
BITNAMI_APP_VERSION=5.5.29-0 \
BITNAMI_APP_DIR=$BITNAMI_PREFIX/php
ENV BITNAMI_APP_VOL_PREFIX=/bitnami/$BITNAMI_APP_NAME \
PATH=$BITNAMI_APP_DIR/sbin:$BITNAMI_APP_DIR/bin:$BITNAMI_PREFIX/common/bin:$PATH
RUN sh $BITNAMI_PREFIX/install.sh\
--php_fpm_allow_all_remote_connections 1 --php_fpm_connection_mode port
COPY rootfs/ /
EXPOSE 9000
VOLUME ["$BITNAMI_APP_VOL_PREFIX/logs", "$BITNAMI_APP_VOL_PREFIX/conf"]
WORKDIR /app
ENTRYPOINT ["/entrypoint.sh"]