Skip to content
Snippets Groups Projects
Commit cdfead05 authored by Jiman Kim's avatar Jiman Kim
Browse files

add USER into dockerfile

parent 3d95e45b
No related branches found
No related tags found
1 merge request!711add USER into dockerfile
Pipeline #291927 failed
......@@ -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"]
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