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

Merge branch 'user-dockerfile' into 'master'

add USER into dockerfile

See merge request !711
parents 3d95e45b cdfead05
No related branches found
No related tags found
1 merge request!711add USER into dockerfile
Checking pipeline status
......@@ -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