Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved randomness of downloading #31

Open
i3130002 opened this issue Sep 11, 2024 · 0 comments
Open

Improved randomness of downloading #31

i3130002 opened this issue Sep 11, 2024 · 0 comments

Comments

@i3130002
Copy link

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
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant