Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoTA
cota-backend
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
b01679f1
...
@@ -26,7 +26,8 @@ COPY --from=corretto-jdk /customjre $JAVA_HOME
...
@@ -26,7 +26,8 @@ COPY --from=corretto-jdk /customjre $JAVA_HOME
# Add app user
# Add app user
ARG
APPLICATION_USER=appuser
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.
# Prepare environment.
# Create needed folders
# Create needed folders
...
@@ -42,4 +43,4 @@ COPY --chown=1000:1000 target/dta-backend.jar app.jar
...
@@ -42,4 +43,4 @@ COPY --chown=1000:1000 target/dta-backend.jar app.jar
USER
1000
USER
1000
ENTRYPOINT
["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
ENTRYPOINT
["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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