Skip to content
Snippets Groups Projects
Commit 5273988e authored by Eugene Xiang's avatar Eugene Xiang Committed by Yunhua Koglin
Browse files

Runasnonroot

parent dbe66d8a
No related branches found
No related tags found
1 merge request!395Runasnonroot
......@@ -161,7 +161,7 @@ The following software have components provided under the terms of this license:
- PowerMock (from http://www.powermock.org, https://repo1.maven.org/maven2/org/powermock/powermock-api-mockito)
- Proton-J (from https://repo1.maven.org/maven2/org/apache/qpid/proton-j)
- QpidJMS Client (from https://repo1.maven.org/maven2/org/apache/qpid/qpid-jms-client)
- Redisson (from http://redisson.org)
- Redisson (from http://redisson.org, https://redisson.pro)
- Retrofit (from https://github.com/square/retrofit, https://repo1.maven.org/maven2/com/squareup/retrofit2/retrofit)
- RxJava (from https://github.com/ReactiveX/RxJava)
- SnakeYAML (from http://code.google.com/p/snakeyaml/, http://www.snakeyaml.org, https://bitbucket.org/snakeyaml/snakeyaml)
......@@ -279,7 +279,7 @@ The following software have components provided under the terms of this license:
- Netty/Codec/HTTP (from https://repo1.maven.org/maven2/io/netty/netty-codec-http)
- Old JAXB Core (from <https://eclipse-ee4j.github.io/jaxb-ri/>, https://eclipse-ee4j.github.io/jaxb-ri/, https://repo1.maven.org/maven2/com/sun/xml/bind/jaxb-impl)
- Plexus Common Utilities (from http://plexus.codehaus.org/plexus-utils, https://codehaus-plexus.github.io/plexus-utils/, https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils)
- Redisson (from http://redisson.org)
- Redisson (from http://redisson.org, https://redisson.pro)
- ReflectASM (from https://github.com/EsotericSoftware/reflectasm)
- Spring Core (from http://www.springframework.org, https://github.com/spring-projects/spring-framework, https://repo1.maven.org/maven2/org/springframework/spring-core)
......@@ -308,7 +308,7 @@ The following software have components provided under the terms of this license:
- Hibernate Validator (from https://hibernate.org/validator, https://repo1.maven.org/maven2/org/hibernate/hibernate-validator, https://repo1.maven.org/maven2/org/hibernate/validator/hibernate-validator)
- LatencyUtils (from http://latencyutils.github.io/LatencyUtils/)
- Netty/Common (from https://repo1.maven.org/maven2/io/netty/netty-common)
- Redisson (from http://redisson.org)
- Redisson (from http://redisson.org, https://redisson.pro)
- reactive-streams (from http://www.reactive-streams.org/)
========================================================================
......
......@@ -15,6 +15,10 @@
# https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html
FROM public.ecr.aws/amazoncorretto/amazoncorretto:17
RUN yum update -y && yum install -y shadow-utils \
&& groupadd -g 10001 -r appgroup \
&& useradd -M -g 10001 -r -u 10001 appuser
ARG JAR_FILE=provider/unit-aws/target/*spring-boot.jar
#Default to using self signed generated TLS cert
......@@ -25,4 +29,5 @@ COPY /data/unit_catalog_v2.json /data/unit_catalog_v2.json
COPY /provider/unit-aws/build-aws/entrypoint.sh /entrypoint.sh
EXPOSE 8080
USER 10001:10001
ENTRYPOINT ["/bin/sh", "-c", ". /entrypoint.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment