librespeed / speedtest

Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more
https://librespeed.org
GNU Lesser General Public License v3.0
12.31k stars 2.22k forks source link

Custom frontend file in Docker #337

Open lehha opened 4 years ago

lehha commented 4 years ago

Description

Cant add a custom file to Dockerfile (COPY index.php /var/www/html/), because Cleanup row #7 in entrypoint.sh clear directory /var/www/html/ after copying file into it.

Why it should be implemented

The way to customize Docker build.

Optional: implementation suggestions

Maybe add new instruction in entrypoint.sh like: if file index_custom.php exist, rename index_custom.php into index.php Or explain this problem for having way to customize any file.

yurividal commented 4 years ago

check out the linuxserver/librespeed docker image. they pull from this source, and add a symlink to a mounted folder where you can customize the index.html

E095TI commented 2 years ago

How can I find the file "index.php" at the linuxserver/librespeed docker?

Nuke142 commented 2 years ago

check out the linuxserver/librespeed docker image. they pull from this source, and add a symlink to a mounted folder where you can customize the index.html

linuxserver does not have backend and frontend MODE and other ENV.

Please allow to change frontend in adolfintel docker.