mirror of
https://github.com/bitnami/containers.git
synced 2026-03-08 02:37:20 +08:00
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.
23 lines
653 B
Docker
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"]
|