Commit b01679f1 authored by Lückemeyer's avatar Lückemeyer
Browse files

fixed user group to 'docker' for non-root backend execution in docker container

parent d30fc5bc
Pipeline #8591 passed with stage
......@@ -26,7 +26,8 @@ COPY --from=corretto-jdk /customjre $JAVA_HOME
# Add app user
ARG APPLICATION_USER=appuser
RUN adduser --no-create-home -u 1000 -D $APPLICATION_USER
RUN addgroup -g 137 -S docker
RUN adduser --no-create-home -u 1000 -G docker -D $APPLICATION_USER
# Prepare environment.
# Create needed folders
......@@ -42,4 +43,4 @@ COPY --chown=1000:1000 target/dta-backend.jar app.jar
USER 1000
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
\ No newline at end of file
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment