FROM python:3.7-slim
-ENV HTTP_PROXY ${HTTP_PROXY}
-ENV HTTPS_PROXY ${HTTPS_PROXY}
+RUN groupadd -r -g 1000 onap && useradd -u 1000 -r -g onap onap
RUN mkdir -p /opt/app/onap/logs/ && touch /opt/app/onap/logs/application.log
&& rm -rf /source.tar.gz \
&& rm -rf /tmp/@project.build.finalName@
-RUN pip install --no-cache-dir -r /opt/app/onap/requirements.txt
+RUN pip install --no-cache-dir -r /opt/app/onap/python/requirements/docker.txt
-VOLUME /opt/app/onap/blueprints/deploy/
+RUN mkdir -p /opt/app/onap/blueprints/deploy
+RUN chown onap:onap /opt -R
-ENTRYPOINT /opt/app/onap/start.sh
\ No newline at end of file
+VOLUME /opt/app/onap/blueprints/deploy/
+USER onap
+ENTRYPOINT /opt/app/onap/python/start.sh