Enabling Nbextensions using custom docker image

I am trying to install and enable Nbextensions via docker image. I have setup jupyterhub on EKS cluster. Nbextensions are not getting enabled.
Following from documentation-

When i try to install and enable via jupyterlab terminal , they are getting enabled.

pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user

My docker file-

FROM jupyter/minimal-notebook:lab-3.2.9

RUN pip install --no-cache-dir \

jupyter_contrib_nbextensions \


RUN jupyter nbextensions_configurator enable --user && \

jupyter contrib nbextension install --user

CMD [“jupyterhub-singleuser”]

Can you tell us your Z2JH version, and show us your configuration with secrets redacted.

What happens if you run your built Docker image directly, without JupyterHub?