&& apt-get -y --no-install-recommends install x11-common pdftk poppler-utils ghostscript netpbm sshfs mupdf-tools php8.1-cli php8.1-fpm php8.1-curl php8.1-exif php8.1-xml php8.1-gd php8.1-ssh php8.1-zip libjpeg-turbo-progs zip unzip \
less nano wget bash lynx
+USER 1001:1001
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY overrides.conf /etc/php/8.1/fpm/pool.d/z-overrides.conf
COPY --chmod=755 startup /usr/bin/startup
$f = $_POST['function'];
if (is_callable([Tools::class, $f])) {
- $res = Tools::$f($_POST);
+ try {
+ $res = Tools::$f($_POST);
+ } catch (Exception $e) {
+ error_log($e->getMessage());
+ }
error_log($f . ' : ' . print_r($_POST, true) . ' -> ' . $res);
die($res);
}