magento2-docker/docker-entrypoint.sh

18 lines
285 B
Bash
Executable File

#!/bin/sh
if [ ! -f "$PWD/.env" ]; then
cp .env.example .env
fi
if [ ! -d "$PWD/vendor" ]; then
# vendor not exist
composer install
fi
source "$PWD/.env"
# Do something get environment
chown -R apache:apache /var/www/html
chmod -R 775 /var/www/html
httpd -D FOREGROUND