Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
DTABackend
Commits
b01679f1
Commit
b01679f1
authored
Oct 19, 2023
by
Lückemeyer
Browse files
fixed user group to 'docker' for non-root backend execution in docker container
parent
d30fc5bc
Pipeline
#8591
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
b01679f1
...
...
@@ -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"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment