forked from cmbi/xssp-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-celery
37 lines (31 loc) · 1.14 KB
/
Dockerfile-celery
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
FROM python:2.7
# dependencies
RUN mkdir /deps
RUN apt-get update ;\
apt-get install -y make rsync wget git g++ libboost-all-dev libbz2-dev \
doxygen xsltproc docbook docbook-xsl docbook-xml \
autoconf automake autotools-dev ncbi-blast\+
# libzeep
RUN git clone https://github.com/mhekkel/libzeep.git /deps/libzeep ;\
cd /deps/libzeep ;\
git checkout tags/v3.0.3
# Workaround due to bug in libzeep's makefile
RUN sed -i '71s/.*/\t\$\(CXX\) \-shared \-o \$@ \-Wl,\-soname=\$\(SO_NAME\) \$\(OBJECTS\) \$\(LDFLAGS\)/' /deps/libzeep/makefile
WORKDIR /deps/libzeep
# Run ldconfig manually to work around a bug in libzeep's makefile
RUN make -j ; make install ; ldconfig
# xssp
RUN git clone https://github.com/cmbi/xssp.git /deps/xssp ;\
cd /deps/xssp ;\
git checkout tags/2.2.8
WORKDIR /deps/xssp
RUN aclocal ; autoheader ; automake --add-missing ; autoconf
RUN ./configure ; make -j ; make install
# xssp-api
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
# settings
ENV C_FORCE_ROOT true