-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
39 lines (28 loc) · 1.05 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
38
FROM python:3.7
LABEL maintainer="Ummar Abbas <uabbas@hbku.edu.qa>"
WORKDIR /home
# upgrade pip itself
RUN pip3 install --upgrade pip
COPY qa-requirements.txt /home
RUN pip3 install -r qa-requirements.txt
# copy common requirements to cache the dependencies
COPY requirements.txt /home/requirements.txt
RUN MINIMAL_KATS=1 pip3 install -r requirements.txt
# install tasrif and its dependencies in editable mode
COPY setup.py /home/setup.py
COPY README.md /home/README.md
RUN pip3 install --use-deprecated=legacy-resolver -e .
COPY run-pylint.sh /home
COPY run-darglint.sh /home
# copy quick start example files
COPY examples/quick_start /home/examples/quick_start
COPY / /home
# Add Tini. Tini operates as a process subreaper for jupyter. This prevents
# kernel crashes.
ENV TINI_VERSION v0.6.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
EXPOSE 8888
CMD ["mkdir", "mnt"]
CMD ["jupyter", "notebook", "--port=8888", "--allow-root", "--no-browser", "--ip=0.0.0.0"]