#!/bin/sh set -e # Set permissions on the data directory chown -R www-data:www-data /var/www/html/data chmod -R 775 /var/www/html/data # Execute the CMD from the Dockerfile, or the command passed to `docker run` exec "$@"