Revert the changes for Docker non root user
There are side effects when using non root user in Dockerfile(s)
Need further investigation
Signed-off-by: ecaiyanlinux <martin.c.yan@est.tech>
Change-Id: Idc8d45084d9bee28f52c5e236b652d3f4d497d7a
diff --git a/information-coordinator-service/Dockerfile b/information-coordinator-service/Dockerfile
index 226d2ec..e9d179d 100644
--- a/information-coordinator-service/Dockerfile
+++ b/information-coordinator-service/Dockerfile
@@ -25,6 +25,7 @@
RUN mkdir -p /var/log/information-coordinator-service
RUN mkdir -p /opt/app/information-coordinator-service/etc/cert/
RUN mkdir -p /var/information-coordinator-service
+RUN chmod -R 777 /var/information-coordinator-service
EXPOSE 8083 8434
@@ -33,12 +34,8 @@
ADD /config/keystore.jks /opt/app/information-coordinator-service/etc/cert/keystore.jks
ADD /config/truststore.jks /opt/app/information-coordinator-service/etc/cert/truststore.jks
-RUN groupadd -g 999 appuser && \
- useradd -r -u 999 -g appuser appuser
-RUN chown -R appuser:appuser /opt/app/information-coordinator-service
-RUN chown -R appuser:appuser /var/information-coordinator-service
-RUN chown -R appuser:appuser /var/log/information-coordinator-service
-USER appuser
+
+RUN chmod -R 777 /opt/app/information-coordinator-service/config/
CMD ["java", "-jar", "/opt/app/information-coordinator-service/information-coordinator-service.jar"]