Merge "Add docker build to mediator pom"
[nonrtric.git] / test / usecases / oruclosedlooprecovery / scriptversion / simulators / Dockerfile-sdnr-sim
index 103c97c..f3a5200 100644 (file)
@@ -22,6 +22,16 @@ COPY . /usr/src/app/
 
 WORKDIR /usr/src/app
 
+## install curl & ping to help debug
+RUN apt update
+RUN apt install curl -y
+RUN apt-get install iputils-ping -y
+
 RUN pip install -r requirements.txt
 
-CMD [ "python3", "sdnr_simulator.py" ]
+RUN groupadd -g 999 appuser && \
+    useradd -r -u 999 -g appuser appuser
+
+USER appuser
+
+CMD [ "python3", "-u", "sdnr_simulator.py" ]