Unable to install logstash plugin offline

I figured out the issue.
The gem was not visible to the docker container.
I had to first copy it and than use it in the Dockerfile.