- && git clone https://github.com/robshakir/pyangbind \
- && pip3 install -e pyangbind \
- && git clone https://osm.etsi.org/gerrit/osm/IM \
- && cd /app/IM/models/yang \
- && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -o /app/osm_nbi/vnfd_catalog.py vnfd.yang \
- && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -o /app/osm_nbi/nsd_catalog.py nsd.yang
+ && git -C /app clone https://github.com/robshakir/pyangbind \
+ && pip3 install -e /app/pyangbind \
+ && git -C /app clone https://osm.etsi.org/gerrit/osm/IM \
+ && mkdir -p /app/IM/osm_im \
+ && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -p /app/IM/models/yang \
+ -o /app/IM/osm_im/vnfd.py /app/IM/models/yang/vnfd.yang \
+ && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -p /app/IM/models/yang \
+ -o /app/IM/osm_im/nsd.py /app/IM/models/yang/nsd.yang \
+ && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -p /app/IM/models/yang \
+ -o /app/IM/osm_im/nst.py /app/IM/models/yang/nst.yang \
+ && pip3 install -e /app/IM