'How to set update-crypto-policies to LEGACY in Dockerfile

So im trying to do RUN update-crypto-policies --set LEGACY in my Dockerfile as I was getting an error "Failed to load certificate from file 'client-rsa.pem':''ee key too small".

But when I build my Dockerfile I get an error "#5 0.540 /bin/sh: update-crypto-policies: command not found"

Could anyone please explain me why is this happening and how to set crypto-policies to LEGACY in dockerfile?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source