Newer
Older
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
38
39
40
41
42
43
44
45
46
47
48
FROM debian:9
LABEL maintainer "Marco De Donno <Marco.DeDonno@unil.ch>"
################################################################################
# System update
RUN apt update && \
apt full-upgrade -y
RUN groupadd -r icnml && \
useradd -r -g icnml icnml && \
mkdir /home/icnml && \
chown icnml:icnml /home/icnml
################################################################################
# Installation of Python and other tooling
RUN apt install -y curl git python python-pip
RUN pip install --upgrade pip
################################################################################
# Installation of Marco De Donno's libraries and depencencies
COPY ./library /library
RUN find /library -name 'requirements.txt' -exec pip install -r {} \;
RUN find /library -maxdepth 1 -mindepth 1 > /usr/local/lib/python2.7/dist-packages/mdedonno.pth
RUN chmod +x /library/WSQ/WSQ/NBIS/cwsq && \
chmod +x /library/WSQ/WSQ/NBIS/dwsq
RUN python /library/NIST/doctester.py
################################################################################
# Add the web module
COPY ./app/requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
COPY ./keys /keys
COPY ./app /app
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR /app
ENTRYPOINT /entrypoint.sh
USER icnml