diff --git a/annotation-service/Dockerfile b/annotation-service/Dockerfile
index 31d5b22f6..f622f2429 100644
--- a/annotation-service/Dockerfile
+++ b/annotation-service/Dockerfile
@@ -1,8 +1,13 @@
####################################### Build stage #######################################
-FROM maven:3.9-eclipse-temurin-17-alpine AS build-stage
+FROM maven:3.9-eclipse-temurin-21-alpine AS build-stage
-ARG CITE_MAVEN_ACCOUNT_USR
-ARG CITE_MAVEN_ACCOUNT_PSW
+ARG MAVEN_ACCOUNT_USR
+ARG MAVEN_ACCOUNT_PSW
+ARG REVISION
+ARG PROFILE
+ARG DEV_PROFILE_URL
+ENV server_username=$MAVEN_ACCOUNT_USR
+ENV server_password=$MAVEN_ACCOUNT_PSW
COPY pom.xml /build/
COPY annotation /build/annotation/
@@ -15,12 +20,15 @@ RUN rm -f /build/annotation-web/src/main/resources/certificates/*.crt
WORKDIR /build/
-RUN mvn -Dserver.username=${CITE_MAVEN_ACCOUNT_USR} -Dserver.password=${CITE_MAVEN_ACCOUNT_PSW} dependency:go-offline
+RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} dependency:go-offline
# Build project
-RUN mvn -Dserver.username=${CITE_MAVEN_ACCOUNT_USR} -Dserver.password=${CITE_MAVEN_ACCOUNT_PSW} clean package
+RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} clean package
######################################## Run Stage ########################################
-FROM eclipse-temurin:17-jre-ubi9-minimal
+FROM eclipse-temurin:21-jre-ubi9-minimal
+
+ARG PROFILE
+ARG REVISION
COPY --from=build-stage /build/annotation-web/target/sti-viewer-annotation-web.jar /app/sti-viewer-annotation-web.jar
diff --git a/annotation-service/settings.xml b/annotation-service/settings.xml
index 044f36492..42318e876 100644
--- a/annotation-service/settings.xml
+++ b/annotation-service/settings.xml
@@ -4,9 +4,24 @@
- cite-maven
- ${server.username}
- ${server.password}
+ dev
+ ${server_username}
+ ${server_password}
+
+
+ dev
+
+
+ true
+
+
+ dev
+ Dev Profile
+ ${devProfileUrl}
+
+
+
+