openspeedtest / Docker-Image

OpenSpeedTest Docker Image
129 stars 29 forks source link

Improved randomness of `downloading` #31

Open i3130002 opened 1 month ago

i3130002 commented 1 month ago

Thanks for this great project.

I was trying to host this project on Huggingface and I noticed that this project has a 30MB file in here.

I do not suppose it is easy/cheap to host it even on Github and I'm not sure if it's a high entropy file. Let's use the following code to generate a new random file:

Dockerfile

...
COPY /files/nginx.key /etc/ssl/

ARG FILE_SIZE=31457280
ARG FILE_NAME=downloading
RUN apk --no-cache add coreutils
RUN dd if=/dev/urandom of=/usr/share/nginx/html/$FILE_NAME bs=1 count=$FILE_SIZE

USER root
...