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

Merge branch 'user-dockerfile' into 'master'

user dockerfile

See merge request !610
parents 818b3e15 7bd82a8a
No related branches found
No related tags found
1 merge request!610user dockerfile
Pipeline #291969 failed
......@@ -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/legal-aws/target/*spring-boot.jar
WORKDIR /
......@@ -22,4 +26,5 @@ COPY ${JAR_FILE} app.jar
COPY /provider/legal-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