diff --git a/provider/schema-aws/build-aws/Dockerfile b/provider/schema-aws/build-aws/Dockerfile index 2b0890b18e3b99e19c390b29ac93016a6e087f96..1da4d02decb23cc31f763a32b868279d4d43583b 100644 --- a/provider/schema-aws/build-aws/Dockerfile +++ b/provider/schema-aws/build-aws/Dockerfile @@ -15,6 +15,10 @@ # https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html FROM 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/schema-aws/target/*-spring-boot.jar @@ -23,4 +27,5 @@ COPY ${JAR_FILE} app.jar COPY /provider/schema-aws/build-aws/entrypoint.sh /entrypoint.sh EXPOSE 8080 +USER 10001:10001 ENTRYPOINT ["/bin/sh", "-c", ". /entrypoint.sh"]