This commit is contained in:
parent
ce283a8b0e
commit
5a2a297ce3
@ -1,7 +1,7 @@
|
||||
FROM php:8.2-fpm
|
||||
|
||||
COPY docker-php-entrypoint /usr/local/bin/
|
||||
|
||||
USER www-data
|
||||
|
||||
COPY cloudlog/ /var/www/cloudlog
|
||||
|
||||
CMD ["cp", "/var/www/cloudlog", "/var/www/html", ";", "php-fpm"]
|
11
docker-php-entrypoint
Normal file
11
docker-php-entrypoint
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cp -r /var/www/cloudlog /var/www/html
|
||||
|
||||
# first arg is `-f` or `--some-option`
|
||||
if [ "${1#-}" != "$1" ]; then
|
||||
set -- php-fpm "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user