1
0

overwrite entrypoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2024-04-04 20:48:15 +02:00
parent ce283a8b0e
commit 5a2a297ce3
2 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,7 @@
FROM php:8.2-fpm FROM php:8.2-fpm
COPY docker-php-entrypoint /usr/local/bin/
USER www-data USER www-data
COPY cloudlog/ /var/www/cloudlog COPY cloudlog/ /var/www/cloudlog
CMD ["cp", "/var/www/cloudlog", "/var/www/html", ";", "php-fpm"]

11
docker-php-entrypoint Normal file
View 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 "$@"