RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install curl software-properties-common
-RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git python3 python3-jsonschema \
- python3-pymongo python3-yaml python3-pip python3-keystoneclient \
- && pip3 install -U pip \
- && python3 -m pip install aiokafka dataclasses aiohttp cherrypy==18.1.2 pyangbind keystoneauth1 \
+RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y git python3 python3-dev python3-pip python3-yaml
+
+RUN python3 -m pip install --upgrade pip
+
+RUN DEBIAN_FRONTEND=noninteractive apt-get install -y rustc cargo
+
+RUN python3 --version && python3 -m pip --version
+
+RUN rustc --version && cargo --version
+
+RUN python3 -m pip install --upgrade setuptools setuptools-rust
+
+RUN python3 -m pip install --upgrade aiokafka dataclasses python-keystoneclient pymongo jsonschema \
+ aiohttp cherrypy==18.1.2 pyangbind keystoneauth1 \
&& mkdir -p /app/storage/kafka && mkdir -p /app/log
ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
ARG COMMON_VERSION
ARG IM_VERSION
-RUN apt-get update && apt-get -y install python3-osm-nbi${NBI_VERSION} python3-osm-common${COMMON_VERSION} python3-osm-im${IM_VERSION}
+RUN apt-get update &&DEBIAN_FRONTEND=noninteractive apt-get -y install python3-osm-nbi${NBI_VERSION} python3-osm-common${COMMON_VERSION} python3-osm-im${IM_VERSION}
# Set the working directory to /app
WORKDIR /app/osm_nbi