1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-08-17 22:11:53 +02:00

Refactor Code and Update Doc

This commit is contained in:
Prasath Mani
2022-11-20 15:04:25 +05:30
parent 8de16a4c8a
commit df80b73436
4 changed files with 77 additions and 97 deletions

View File

@@ -22,8 +22,7 @@ RUN docker-php-ext-install \
WORKDIR /var/www/html
COPY tinyfilemanager.php index.php
COPY config-sample.php config.php
RUN sed -i "s/\$root_path =.*;/\$root_path = \$_SERVER['DOCUMENT_ROOT'].'\/data';/g" config.php && \
sed -i "s/\$root_url = '';/\$root_url = 'data\/';/g" config.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"]