Skip to content

Commit

Permalink
Update Dockerfile-mvn-no-local
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensrtw authored Sep 19, 2024
1 parent 043e7f0 commit 6b2c19f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile-mvn-no-local
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 .
Expand Down

0 comments on commit 6b2c19f

Please sign in to comment.