forked from afraenkel/capstone-malware-domain
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
45 lines (32 loc) · 1.02 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
39
40
41
42
43
44
45
FROM ucsdets/scipy-ml-notebook:2021.3.1
LABEL maintainer="Javier Duarte <jduarte@ucsd.edu>"
USER root
#WORKDIR /root
# Install cmake and XRootD
RUN apt-get update && \
apt-get upgrade -qq -y && \
apt-get install -qq -y \
python3-pip \
cmake && \
apt-get -y autoclean && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
ADD install_xrootd.sh install_xrootd.sh
RUN bash install_xrootd.sh && \
rm install_xrootd.sh
ENV PATH /opt/xrootd/bin:${PATH}
ENV LD_LIBRARY_PATH /opt/xrootd/lib
RUN conda install -c pyg -c conda-forge uproot xrootd scikit-learn matplotlib tqdm pyg autopep8
RUN pip install --no-cache-dir mplhep \
&& pip install --no-cache-dir -U jupyter-book
ADD fix-permissions fix-permissions
RUN chmod +x fix-permissions
RUN fix-permissions /home/$NB_USER
#RUN echo "jovyan ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
# usermod -aG sudo jovyan && \
# usermod -aG root jovyan
#EXPOSE 8888
USER $NB_USER
WORKDIR /home/$NB_USER
ENV USER=${NB_USER}