24 lines
670 B
Docker
24 lines
670 B
Docker
FROM hapiproject/hapi:base as build-hapi
|
|
|
|
ARG HAPI_FHIR_URL=https://github.com/jamesagnew/hapi-fhir/
|
|
ARG HAPI_FHIR_BRANCH=master
|
|
|
|
RUN git clone --branch ${HAPI_FHIR_BRANCH} ${HAPI_FHIR_URL}
|
|
WORKDIR /tmp/hapi-fhir/
|
|
RUN /tmp/apache-maven-3.6.2/bin/mvn dependency:resolve
|
|
RUN /tmp/apache-maven-3.6.2/bin/mvn install -DskipTests
|
|
|
|
WORKDIR /tmp/hapi-fhir-jpaserver-starter
|
|
|
|
COPY . .
|
|
|
|
RUN /tmp/apache-maven-3.6.2/bin/mvn clean install -DskipTests
|
|
|
|
FROM tomcat:9-jre11
|
|
|
|
RUN mkdir -p /data/hapi/lucenefiles && chmod 775 /data/hapi/lucenefiles
|
|
COPY --from=build-hapi /tmp/hapi-fhir-jpaserver-starter/target/*.war /usr/local/tomcat/webapps/
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["catalina.sh", "run"] |