-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
77 lines (58 loc) · 1.78 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
##############################################################################
# Dockerfile to run MXCuBE web server
##############################################################################
FROM centos:7
MAINTAINER Antonio Milan Otero <antonio.milan_otero.maxiv.lu.se>
# Install ####
RUN yum install -y curl
RUN curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
RUN yum install -y gcc-c++ make
# or: yum groupinstall 'Development Tools'
# Install nodejs from epel repository ####
RUN yum install -y nodejs npm
# Check nodejs version ####
# RUN node --version
# Install npm ####
# RUN yum install -y npm
# Install more dependencies ####
RUN yum install -y \
python-devel \
openldap-devel \
lapack-devel \
zlib-devel \
libjpeg-turbo-devel \
libxml2-devel \
libxslt-devel \
openssl-devel \
libgfortran \
cyrus-sasl-devel
# Install git ####
RUN yum install -y git
# Get MxCUBE code ####
RUN mkdir /mxcube
WORKDIR /mxcube
RUN git clone https://github.com/mxcube/mxcube3.git --recursive
WORKDIR mxcube3
# RUN git submodule init; git submodule update
# Install EPEL repository ####
RUN yum install -y epel-release
RUN yum makecache # && yum update -y
# Install python pip ####
RUN yum install -y python-pip
RUN yum install -y redis
# Install requirements ####
RUN pip install -r requirements.txt
# Install supervisor
RUN pip install supervisor
# Install npm ####
RUN npm install
RUN npm install fabric
RUN npm install --dev
RUN cp backend_server.js.example backend_server.js
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY run_mxcube /usr/local/bin/
#COPY docker-entrypoint.sh /usr/local/bin/
#ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
EXPOSE 8090
# 8081
CMD ["/usr/bin/supervisord"]