-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (25 loc) · 1 KB
/
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/iris-community:latest-preview
FROM $IMAGE
WORKDIR /irisdev/app
## Python stuff
ENV IRISUSERNAME "SuperUser"
ENV IRISPASSWORD "SYS"
ENV IRISNAMESPACE "IRISAPP"
ENV PYTHON_PATH=/usr/irissys/bin/
ENV LD_LIBRARY_PATH=${ISC_PACKAGE_INSTALLDIR}/bin:${LD_LIBRARY_PATH}
ENV PATH "/home/irisowner/.local/bin:/usr/irissys/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/irisowner/bin"
COPY . .
USER root
# Remove EXTERNAL-MANAGER from the system
RUN rm -f /usr/lib/python3.12/EXTERNALLY-MANAGED
# Update package and install sudo
RUN apt-get update && apt-get install -y \
git \
nano \
sudo && \
/bin/echo -e ${ISC_PACKAGE_MGRUSER}\\tALL=\(ALL\)\\tNOPASSWD: ALL >> /etc/sudoers && \
sudo -u ${ISC_PACKAGE_MGRUSER} sudo echo enabled passwordless sudo-ing for ${ISC_PACKAGE_MGRUSER}
USER ${ISC_PACKAGE_MGRUSER}
RUN pip3 install -r requirements.txt
# change the entrypoint to run iris and the python script
ENTRYPOINT [ "/irisdev/app/entrypoint.sh" ]