Opensearch and opensearch dashboard in same dockerfile

AnyOne have tried to install opensearch and openserachDashboard in same Dockerfile ?

Regards