-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
37 lines (29 loc) · 948 Bytes
/
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 ER=dev
ARG ACCDAQ=master
ARG DEPENDENCIES=ghcr.io/flnr-jinr/fs_oct17p4:latest
FROM ${DEPENDENCIES}
RUN apt-get install nano
WORKDIR /opt
RUN useradd -m -d /home/jovyan jovyan
RUN chown jovyan:jovyan /opt
USER jovyan
SHELL ["/bin/bash", "--login", "-c"]
RUN git clone https://github.com/flnr-jinr/ACCULINNA_go4_user_library accdaq &&\
cd accdaq &&\
git checkout ${ACCDAQ} &&\
mkdir build && cd build &&\
source /opt/FairSoft/bin/thisroot.sh &&\
source /opt/go4/go4login &&\
cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/accdaq/install &&\
make install -j4
RUN cd /opt && git clone https://github.com/flnr-jinr/er &&\
cd er &&\
git checkout ${ER} &&\
export SIMPATH=/opt/FairSoft/ &&\
export FAIRROOTPATH=/opt/FairRoot/ &&\
mkdir build &&\
cd build &&\
cmake ../ -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DACCULINNA_GO4=/opt/accdaq/install &&\
make -j4
COPY entrypoint.sh /etc/entrypoint.sh
ENTRYPOINT ["/etc/entrypoint.sh"]