Need to install lxml in docker

I wanted to install "lxml " module in my docker and tried following lines:

RUN apt-get install libxml2-dev libxslt-dev python-dev

and then to try installing lxml. But it did not work. Can anyone help please ?

docker on aws machine/amazon linux/ debian ubuntu distro

Every Linux distribution can have different name for the same package. Please, always share details about what you want to achieve, where and how and always share error messages when you have.

Also don’t forget to format your post so we can understand everything and the forum’s markdown filter will not change the post.