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

user docker file

parent 1c5e5115
No related branches found
No related tags found
1 merge request!540user docker file
Pipeline #291949 failed
......@@ -19,11 +19,14 @@ ARG JAR_FILE=provider/notification-aws/target/*spring-boot.jar
# Harcoding this value since Notification-core requires this variable. AWS does not use it. Might change in future
ENV ENVIRONMENT=DEV
RUN yum update -y
RUN yum update -y && yum install -y shadow-utils \
&& groupadd -g 10001 -r appgroup \
&& useradd -M -g 10001 -r -u 10001 appuser
WORKDIR /
COPY ${JAR_FILE} app.jar
COPY /provider/notification-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