-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
44 lines (33 loc) · 984 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
38
39
40
41
42
43
44
FROM --platform=linux/amd64 centos:centos7
# Update packages and install tools
WORKDIR /usr/app
RUN yum update -y
RUN yum install -y python3
RUN yum install -y iputils
RUN python3 -m pip install --upgrade
RUN python3 -m pip install configobj
RUN yum install -y unzip
RUN yum install -y java-11-openjdk java-11-openjdk-devel
RUN yum install -y wget
# install dependencies
COPY requirements ./requirements
RUN python3 -m pip install --no-cache-dir -r requirements/docker.txt
COPY caenlib ./caenlib
WORKDIR /usr/app/caenlib/
RUN tar -xzf CAENHVWrapper-6.3.tgz
RUN rm CAENHVWrapper-6.3.tgz
#RUN unzip CAEN_HVPSS_ChannelsController.zip
#RUN rm CAEN_HVPSS_ChannelsController.zip
WORKDIR /usr/app/caenlib/CAENHVWrapper-6.3/
RUN pwd && ls
RUN ./install.sh
RUN rm *.txt
RUN rm -rf HVWrapperDemo/
RUN pwd && ls
WORKDIR /usr/lib
CMD pwd && ls
RUN ldconfig -l libcaenhvwrapper.so.6.3
RUN export LD_LIBRARY_PATH="/usr/lib"
WORKDIR /usr/app
COPY hvps ./hvps
WORKDIR /usr/app/hvps/