Skip to content

Commit

Permalink
build(docker): non root user in image
Browse files Browse the repository at this point in the history
  • Loading branch information
nsenave committed Nov 13, 2023
1 parent 73994a2 commit 9848677
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM eclipse-temurin:17-jre-focal
WORKDIR /opt/eno-ws/
COPY ./eno-ws/build/libs/*.jar /opt/eno-ws/eno-ws.jar
EXPOSE 8080

RUN addgroup eno
RUN useradd -g eno eno
USER eno

ENTRYPOINT ["java", "-jar", "/opt/eno-ws/eno-ws.jar"]
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = 'fr.insee.eno'
version = '3.11.10-SNAPSHOT'
version = '3.11.11-SNAPSHOT'
sourceCompatibility = '17'
}

Expand Down

0 comments on commit 9848677

Please sign in to comment.