Merge pull request #48 from fhservinga/main
Update Dockerfile for php-fpm and config.php
This commit is contained in:
commit
f87a19fa1e
@ -1,9 +1,11 @@
|
|||||||
FROM php:8.4.1-fpm-bullseye
|
FROM php:8.4-fpm-bullseye
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get --no-install-recommends -y install iputils-ping mtr traceroute iproute2 && \
|
apt-get --no-install-recommends -y install iputils-ping mtr traceroute iproute2 && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
COPY --chown=www-data:www-data . .
|
COPY --chown=www-data:www-data . .
|
||||||
|
@ -23,11 +23,11 @@ const LG_CSS_OVERRIDES = false;
|
|||||||
const LG_CUSTOM_HEAD = false;
|
const LG_CUSTOM_HEAD = false;
|
||||||
|
|
||||||
// Enable or disable blocks/parts of the LG, pass these environment variables with any value to disable them;
|
// Enable or disable blocks/parts of the LG, pass these environment variables with any value to disable them;
|
||||||
define('LG_BLOCK_NETWORK', !isset($_ENV['DISABLE_BLOCK_NETWORK']));
|
define('LG_BLOCK_NETWORK', !getenv('DISABLE_BLOCK_NETWORK'));
|
||||||
define('LG_BLOCK_LOOKINGGLASS', !isset($_ENV['DISABLE_BLOCK_LOOKINGGLASS']));
|
define('LG_BLOCK_LOOKINGGLASS', !getenv('DISABLE_BLOCK_LOOKINGGLASS'));
|
||||||
define('LG_BLOCK_SPEEDTEST', !isset($_ENV['DISABLE_BLOCK_SPEEDTEST']));
|
define('LG_BLOCK_SPEEDTEST', !getenv('DISABLE_BLOCK_SPEEDTEST'));
|
||||||
// This enables the custom block, which you can use to add something custom to the LG;
|
// This enables the custom block, which you can use to add something custom to the LG;
|
||||||
define('LG_BLOCK_CUSTOM', isset($_ENV['ENABLE_CUSTOM_BLOCK']));
|
define('LG_BLOCK_CUSTOM', getenv('ENABLE_CUSTOM_BLOCK'));
|
||||||
|
|
||||||
// Define a file here which will be used to display the custom block, can be PHP too which outputs HTML;
|
// Define a file here which will be used to display the custom block, can be PHP too which outputs HTML;
|
||||||
const LG_CUSTOM_HTML = __DIR__.'/custom.html.php';
|
const LG_CUSTOM_HTML = __DIR__.'/custom.html.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user