aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rwxr-xr-x[-rw-r--r--]src/main/bin/start.sh2
-rw-r--r--src/main/docker/Dockerfile19
2 files changed, 6 insertions, 15 deletions
diff --git a/src/main/bin/start.sh b/src/main/bin/start.sh
index ea42d7f..75ade4e 100644..100755
--- a/src/main/bin/start.sh
+++ b/src/main/bin/start.sh
@@ -39,7 +39,7 @@ PROPS="$PROPS -Dcom.att.eelf.logging.path=$AJSC_HOME"
PROPS="$PROPS -Dcom.att.eelf.logging.file=logback.xml"
PROPS="$PROPS -Dlogback.configurationFile=$AJSC_HOME/logback.xml"
PROPS="$PROPS -Dserver.port=9500"
-JVM_MAX_HEAP=${MAX_HEAP:-1024}
+JVM_ARGS="${JVM_ARGS} -XX:MaxRAMPercentage=${MAX_RAM_PERCENTAGE:-70}";
echo "java $java_runtime_arguments $PROPS -jar $JARFILE"
java $java_runtime_arguments ${JVM_ARGS} $PROPS -jar $JARFILE
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index 10bc3e6..34e3866 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -1,18 +1,9 @@
-FROM @aai.docker.namespace@/aai-common-@aai.base.image@:@aai.base.image.version@
-
-ARG MICRO_HOME=/opt/app/model-loader
+FROM eclipse-temurin:11-jre-alpine
+USER nobody
+ENV MICRO_HOME=/opt/app/model-loader
WORKDIR $MICRO_HOME
-USER root
-
-RUN mkdir -p /opt/aaihome $MICRO_HOME /logs && \
- ln -s /logs $MICRO_HOME/logs && \
- chown -R aaiadmin:aaiadmin $MICRO_HOME && \
- chown -R aaiadmin:aaiadmin /logs
-
-COPY --chown=aaiadmin:aaiadmin /maven/model-loader/ .
-
-ENTRYPOINT ["/bin/bash", "/opt/app/model-loader/bin/start.sh"]
+COPY --chown=nobody:nobody /maven/model-loader/ .
-USER aaiadmin
+ENTRYPOINT ["/bin/sh", "/opt/app/model-loader/bin/start.sh"]