-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (30 loc) · 960 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
34
35
36
37
ARG IMAGE=containers.intersystems.com/intersystems/irishealth-community:latest-em
FROM $IMAGE
USER root
# install tools
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Madrid
RUN apt-get update && apt-get install -y \
software-properties-common \
openssh-client \
vim
# install latest git
RUN add-apt-repository -y ppa:git-core/ppa
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# create directory to copy files into image
WORKDIR /opt/irisapp
RUN chown -R irisowner:irisowner /opt/irisapp
USER irisowner
# copy files to image
WORKDIR /opt/irisapp
RUN mkdir -p /opt/irisapp/db
COPY --chown=irisowner:irisowner iris.script iris.script
COPY --chown=irisowner:irisowner src src
COPY --chown=irisowner:irisowner install install
COPY --chown=irisowner:irisowner Installer.cls Installer.cls
# run iris.script
RUN iris start IRIS \
&& iris session IRIS < /opt/irisapp/iris.script \
&& iris stop IRIS quietly