diff --git a/backend/Dockerfile b/backend/Dockerfile index c473d92..58f9a2a 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -9,7 +9,9 @@ RUN mkdir -p /openmrs/distribution/openmrs_core/ COPY pom.xml ./ COPY distro.properties ./ COPY module-create-users ./module-create-users - +# Build the distro, but only deploy from the amd64 build +RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml \ + cat /usr/share/maven/ref/settings-docker.xml # Build the distro, but only deploy from the amd64 build RUN --mount=type=cache,target=/usr/share/maven/ref/repository --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml \ mvn -s /usr/share/maven/ref/settings-docker.xml \