20
README.md
20
README.md
@@ -326,3 +326,23 @@ elasticsearch.schema_management_strategy=CREATE
|
||||
|
||||
Set `hapi.fhir.lastn_enabled=true` in the [application.yaml](https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/src/main/resources/application.yaml) file to enable the $lastn operation on this server. Note that the $lastn operation relies on Elasticsearch, so for $lastn to work, indexing must be enabled using Elasticsearch.
|
||||
|
||||
## Example of a Dockerfile based on distroless images (for lower footprint and improved security)
|
||||
|
||||
```code
|
||||
FROM maven:3.6.3-jdk-11-slim as build-hapi
|
||||
WORKDIR /tmp/hapi-fhir-jpaserver-starter
|
||||
|
||||
COPY pom.xml .
|
||||
RUN mvn -ntp dependency:go-offline
|
||||
|
||||
COPY src/ /tmp/hapi-fhir-jpaserver-starter/src/
|
||||
RUN mvn clean package spring-boot:repackage -Pboot
|
||||
|
||||
FROM gcr.io/distroless/java:11
|
||||
|
||||
COPY --from=build-hapi /tmp/hapi-fhir-jpaserver-starter/target/ROOT.war /app/main.war
|
||||
|
||||
EXPOSE 8080
|
||||
WORKDIR /app
|
||||
CMD ["main.war"]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user