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:
@@ -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"]
|
||||
|
Reference in New Issue
Block a user