From 6b2c19f6cb294a33ff9d308ee0db428c2f594009 Mon Sep 17 00:00:00 2001 From: stevensrtw <50691414+stevensrtw@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:55:38 -0400 Subject: [PATCH] Update Dockerfile-mvn-no-local --- Dockerfile-mvn-no-local | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Dockerfile-mvn-no-local b/Dockerfile-mvn-no-local index 248c9481c..2cbfd083d 100644 --- a/Dockerfile-mvn-no-local +++ b/Dockerfile-mvn-no-local @@ -16,11 +16,11 @@ COPY pom.xml /code/ RUN mvn package -q -s ${MAVEN_M2} ${MAVEN_PARAMS} -P${MAVEN_PROFILE} COPY src /code/src RUN mvn package -q -s ${MAVEN_M2} ${MAVEN_PARAMS} -P${MAVEN_PROFILE} && \ - && mkdir war \ - && mv target/WebAPI.war war \ - && cd war \ - && jar -xf WebAPI.war \ - && rm WebAPI.war + mkdir war && \ + mv target/WebAPI.war war && \ + cd war && \ + jar -xf WebAPI.war && \ + rm WebAPI.war # OHDSI WebAPI and ATLAS web application running as a Spring Boot application with Java 11 FROM 201959883603.dkr.ecr.us-east-2.amazonaws.com/mdaca/base-images/ironbank-alpine-java:3.20.2_jdk17 @@ -35,7 +35,11 @@ ENV CLASSPATH="" ENV DEFAULT_JAVA_OPTS="-Djava.security.egd=file:///dev/./urandom" # Create and make working directory to a fixed WebAPI directory -RUN addgroup -S webapi && adduser -S -G webapi webapi && mkdir -p /var/lib/ohdsi/webapi && chown -R webapi:webapi /var/lib/ohdsi/webapi +RUN addgroup -S webapi && \ + adduser -S -G webapi webapi && \ + mkdir -p /var/lib/ohdsi/webapi && \ + chown -R webapi:webapi /var/lib/ohdsi/webapi + WORKDIR /var/lib/ohdsi/webapi COPY --from=builder --chown=101 /code/opentelemetry-javaagent.jar .