generated from intersystems-community/objectscript-docker-template
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
25 lines (18 loc) · 1004 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG IMAGE=intersystemsdc/irishealth-community:latest
FROM $IMAGE as builder
WORKDIR /home/irisowner/irisdev
#RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisapp
# copy all the source into container and run iris. also run a initial script
RUN --mount=type=bind,src=.,dst=. \
iris start IRIS && \
iris merge IRIS merge.cpf && \
iris session IRIS < iris.script && \
iris stop IRIS quietly
RUN old=http://localhost:52773/crud/_spec && \
new=/fhirUI/irisfhir_swagger.json && \
sed -i "s|$old|$new|g" /usr/irissys/csp/swagger-ui/index.html
FROM $IMAGE as final
ADD --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} https://github.com/grongierisc/iris-docker-multi-stage-script/releases/latest/download/copy-data.py /irisdev/app/copy-data.py
RUN --mount=type=bind,source=/,target=/builder/root,from=builder \
cp -f /builder/root/usr/irissys/iris.cpf /usr/irissys/iris.cpf && \
python3 /irisdev/app/copy-data.py -c /usr/irissys/iris.cpf -d /builder/root/