diff --git a/Dockerfile b/Dockerfile index e0146e198..cd00988d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/build.gradle b/build.gradle index c4bfa41d6..2462fd0dd 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { allprojects { group = 'fr.insee.eno' - version = '3.11.10-SNAPSHOT' + version = '3.11.11-SNAPSHOT' sourceCompatibility = '17' }