Refer below docker file content. I am trying to install nodejs 16 but it is installing node js 12.
FROM jenkins/inbound-agent:jdk11 AS base
EXPOSE 80
USER root
RUN apt update && apt --yes upgrade && apt --yes install curl
RUN apt update
&& apt --yes install apt-transport-https ca-certificates gnupg-agent software-properties-common lxc
RUN apt update \
&& apt --yes install jq
&& apt install git
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt update -y
RUN apt install -y nodejs
RUN node --version
ENTRYPOINT [“jenkins-agent”]