How do I ensure that Firefox and all its dependencies are installed with docker file?

I need Firefox to run in my container in order to launch the specific application for which I am building this container. However no matter what I try for installing Firefox after the container is built I cannot get Firefox to run. I guess I need to try installing Firefox during the build process, which leads me to this post.
How do I ensure that Firefox and all its dependencies are installed with docker file, and all of its required services are started in the container so it will run? Here is the Dockerfile I am using right now.

FROM ubuntu:20.04

RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y lubuntu-desktop

RUN rm /run/reboot-required*

RUN useradd -m scott -p $(openssl passwd testing)

RUN usermod -aG sudo scott

RUN apt install -y xrdp

RUN adduser xrdp ssl-cert

RUN sed -i '3 a echo "\

export GNOME_SHELL_SESSION_MODE=lubuntu\n\

export XDG_SESSION_TYPE=x11\n\

export XDG_CURRENT_DESKTOP=LXQt\n\

export XDG_CONFIG_DIRS=/etc/xdg/xdg-Lubuntu:/etc/xdg\n\

" > ~/.xsessionrc’ /etc/xrdp/startwm.sh

EXPOSE 3389

CMD service xrdp start ; bash

The post would be way too long to put down all of the different variations of the Dockerfile I’ve tried but it’s been a lot and nothing works to get Firefox up and running.
Any help would be appreciated. Thanks!
Norm