forked from bdeboe/isc-datafest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (21 loc) · 837 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
ARG IMAGE=intersystemsdc/iris-ml-community:preview
FROM ${IMAGE}
USER root
# ENV PIP_TARGET=${ISC_PACKAGE_INSTALLDIR}/mgr/python
WORKDIR /opt/irisbuild
RUN mkdir /opt/irisbuild/data/ && \
chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisbuild && \
chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisbuild/data && \
python3 -m pip install --upgrade pip
USER ${ISC_PACKAGE_MGRUSER}
COPY iris.script iris.script
COPY requirements.txt requirements.txt
COPY data/taxi/ /opt/irisbuild/data/taxi/
RUN iris start IRIS && \
iris session IRIS < iris.script && \
iris stop IRIS quietly && \
pip install -r requirements.txt
# not working with virtual env right now
# RUN python3 -m venv .venv && \
# . .venv/bin/activate && \
# pip install -r requirements.txt