How to install PyTorch Nighly with requirements.txt?

I am trying to install PyTorch Nightly in my docker container. For doing it I am pip installing from requirements.txt.

The requirements.txt file looks as follows:

# ML Framework
numpy
--find-links https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
torch
torchvision

# Web Framework
Flask

However, It looks like 1.5 pytorch is being installing

However, torch and torchvision is not getting installed!