From 12baf03ef5a2fcf4457c6de4ed9f07d85f1ef72b Mon Sep 17 00:00:00 2001 From: Dmitry Efremov Date: Mon, 23 Jan 2023 18:34:37 -0800 Subject: [PATCH] Removes sed from Dockerfile (#948) They were needed before because they changed example config.php so make it workable. Now we don't have it and running sed against main file just removes a lot of code and forces data path for directory --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85f46ca..b306bf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,5 @@ RUN docker-php-ext-install \ WORKDIR /var/www/html COPY tinyfilemanager.php index.php -RUN sed -i "s/\$root_path =.*;/\$root_path = \$_SERVER['DOCUMENT_ROOT'].'\/data';/g" index.php && \ - sed -i "s/\$root_url = '';/\$root_url = 'data\/';/g" index.php CMD ["sh", "-c", "php -S 0.0.0.0:80"]