Debian Codegraph @

parallel/Dockerfile

raw
1 # use the ubuntu base image
2 FROM ubuntu:22.04
3
4 MAINTAINER Tobias Rausch [email protected]
5
6 # install required packages
7 RUN apt-get update && apt-get install -y \
8 autoconf \
9 build-essential \
10 cmake \
11 g++ \
12 gfortran \
13 git \
14 libcurl4-gnutls-dev \
15 hdf5-tools \
16 libboost-date-time-dev \
17 libboost-program-options-dev \
18 libboost-system-dev \
19 libboost-filesystem-dev \
20 libboost-iostreams-dev \
21 libbz2-dev \
22 libdeflate-dev \
23 libhdf5-dev \
24 libncurses-dev \
25 liblzma-dev \
26 pkg-config \
27 zlib1g-dev \
28 && apt-get clean \
29 && rm -rf /var/lib/apt/lists/*
30
31 # set environment
32 ENV BOOST_ROOT /usr
33
34 # install delly
35 RUN cd /opt \
36 && git clone --recursive https://github.com/dellytools/delly.git \
37 && cd /opt/delly/ \
38 && make STATIC=1 PARALLEL=1 all \
39 && make install
40
41
42 # Multi-stage build
43 FROM alpine:latest
44 RUN mkdir -p /opt/delly/bin
45 WORKDIR /opt/delly/bin
46 COPY --from=0 /opt/delly/bin/delly .
47
48 # Workdir
49 WORKDIR /root/
50
51 # Add Delly to PATH
52 ENV PATH="/opt/delly/bin:${PATH}"
53
54 # Set OpenMP threads
55 ENV OMP_NUM_THREADS 2
56
57 # by default /bin/sh is executed
58 CMD ["/bin/sh"]