mirror of
https://github.com/bitnami/containers.git
synced 2026-02-27 06:47:29 +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.
20 lines
442 B
Bash
20 lines
442 B
Bash
#!/bin/bash
|
|
|
|
cd $BITNAMI_APP_DIR
|
|
|
|
# Backup default conf/htdocs
|
|
mv conf conf.defaults
|
|
mv htdocs htdocs.defaults
|
|
|
|
# Create an empty htdocs directory
|
|
mkdir $BITNAMI_APP_DIR/htdocs
|
|
|
|
# Setup mount point symlinks
|
|
ln -s $BITNAMI_APP_DIR/conf $BITNAMI_APP_VOL_PREFIX/conf
|
|
ln -s $BITNAMI_APP_DIR/logs $BITNAMI_APP_VOL_PREFIX/logs
|
|
ln -s $BITNAMI_APP_DIR/htdocs /app
|
|
|
|
# Log to stdout
|
|
ln -sf /dev/stdout logs/access_log
|
|
ln -sf /dev/stderr logs/error_log
|