-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 906 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
FROM containers.intersystems.com/intersystems/iris:2023.1.1.380.0
ARG WEBINAR_INCLUDE_API
USER root
# copy license
COPY iris.key /usr/irissys/mgr/iris.key
# create app directory
WORKDIR /opt/webinar
RUN chown -R irisowner:irisowner /opt/webinar
USER irisowner
# copy files (src, install, etc.)
COPY --chown=irisowner:irisowner iris.script iris.script
COPY --chown=irisowner:irisowner src src
COPY --chown=irisowner:irisowner install install
# include API implementation (or not)
WORKDIR /opt/webinar/
RUN echo "${WEBINAR_INCLUDE_API}"
RUN if [ "${WEBINAR_INCLUDE_API}" = "no" ]; then rm -rf src/Webinar/API/Leaderboard; fi
# download zpm
RUN mkdir -p /tmp/deps \
&& cd /tmp/deps \
&& wget -q https://pm.community.intersystems.com/packages/zpm/latest/installer -O zpm.xml
# run iris.script
RUN iris start IRIS \
&& iris session IRIS < /opt/webinar/iris.script \
&& iris stop IRIS quietly