Commit abe5ab27 authored by Román Sosa's avatar Román Sosa

Modify Dockerfile to not run container as root

parent 35dd10ae
......@@ -14,6 +14,11 @@ RUN mkdir -p ${dest}
COPY ${src_jar} ${dest}/unified-paas-service.jar
COPY ${src_config} ${dest}/config.yml
RUN groupadd -r user && useradd --no-log-init -r -g user user
WORKDIR /tmp
USER user
EXPOSE 8002
ENTRYPOINT [ \
"java", "-jar", \
"/opt/unified-paas/unified-paas-service.jar", \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment