-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.pyLCIO3
More file actions
31 lines (21 loc) · 820 Bytes
/
Dockerfile.pyLCIO3
File metadata and controls
31 lines (21 loc) · 820 Bytes
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
FROM rootproject/root:6.22.00-conda
RUN apt-get update \
&& apt-get -y install cmake \
&& apt-get -y install vim
WORKDIR /home/ilc
## activate conda-env
RUN conda create -n root_env root -c conda-forge
SHELL ["conda", "run", "-n", "root_env", "/bin/bash", "-c"]
RUN git clone https://github.com/iLCSoft/LCIO.git \
&& cd LCIO \
&& git checkout v02-16-01 \
&& mkdir build \
&& cd build \
&& cmake -DBUILD_ROOTDICT=ON -D CMAKE_CXX_STANDARD=17 .. \
&& make -j 8 install
COPY requirements.txt requirements.txt
RUN pip install --upgrade pip \
&& pip install --upgrade --no-cache-dir -r requirements.txt \
&& rm requirements.txt
RUN pip install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio==0.8.1 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
CMD ["/bin/bash"]