Updates
This commit is contained in:
parent
e2b08b04b4
commit
ea6512b525
|
|
@ -86,9 +86,6 @@ RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GR
|
||||||
mv -f /var/www/grav-admin /var/www/html && \
|
mv -f /var/www/grav-admin /var/www/html && \
|
||||||
rm grav-admin.zip
|
rm grav-admin.zip
|
||||||
|
|
||||||
# Create cron job for Grav maintenance scripts
|
|
||||||
RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
|
|
||||||
|
|
||||||
# Accept incoming HTTP requests
|
# Accept incoming HTTP requests
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|
|
||||||
6
run.sh
6
run.sh
|
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Make sure apache can read&right to /var/www
|
# Make sure apache can read&right to /var/www
|
||||||
RUN chown -R apache:apache /var/log/apache2 /var/www
|
chown -R apache:apache /var/log/apache2 /var/www
|
||||||
|
|
||||||
|
# Create cron job for Grav maintenance scripts
|
||||||
|
(crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -
|
||||||
|
|
||||||
# Start PHP-FPM and Apache
|
# Start PHP-FPM and Apache
|
||||||
exec /usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf &
|
exec /usr/sbin/httpd -D FOREGROUND -f /etc/apache2/httpd.conf &
|
||||||
exec /usr/sbin/php-fpm7 -F
|
exec /usr/sbin/php-fpm7 -F
|
||||||
Loading…
Reference in New Issue