Debian Codegraph @

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 using apt
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 all \
39 && make install
40
41
42 # Multi-stage build
43 FROM alpine:latest
44 RUN apk add --no-cache bash
45 RUN mkdir -p /opt/delly/bin
46 WORKDIR /opt/delly/bin
47 COPY --from=0 /opt/delly/bin/delly .
48
49 # Workdir
50 WORKDIR /home
51
52 # Add Delly to PATH
53 ENV PATH="/opt/delly/bin:${PATH}"
54
55 # by default /bin/sh is executed
56 CMD ["/bin/bash"]