generated from intersystems-community/objectscript-docker-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (26 loc) · 824 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
26
27
28
29
30
31
32
33
ARG IMAGE=intersystemsdc/irishealth-community
FROM $IMAGE
USER root
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Add Git
RUN apt update && apt-get -y install git
WORKDIR /opt/irisbuild
RUN \
mkdir /webapplications &&\
mkdir /converted-webapps &&\
chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisbuild /webapplications /converted-webapps
USER ${ISC_PACKAGE_MGRUSER}
COPY src src
COPY module.xml module.xml
COPY iris.script iris.script
USER root
# create volume for UDL export
RUN mkdir -p /irisrun/udl-export
RUN chown -R ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /irisrun/udl-export
VOLUME [ "/irisrun/udl-export" ]
USER ${ISC_PACKAGE_MGRUSER}
RUN iris start IRIS \
&& iris session IRIS < iris.script \
&& iris stop IRIS quietly
ENTRYPOINT [ "/entrypoint.sh" ]