-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
34 lines (29 loc) · 1009 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
# PANDORA
# Pan-genome inference and genotyping with long noisy or short accurate reads
FROM ubuntu:22.04
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt update \
&& apt install -y software-properties-common \
&& apt-add-repository universe \
&& apt update \
&& apt install --no-install-recommends -y build-essential git cmake wget gdb \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
#============================================
# INSTALL PANDORA
#============================================
# can override the build type with docker's --build-arg command
# https://docs.docker.com/engine/reference/builder/#arg
ARG PANDORA_BUILD_TYPE="Release"
ENV PANDORA_DIR "/pandora/"
COPY . $PANDORA_DIR
WORKDIR ${PANDORA_DIR}/build
RUN cmake -DCMAKE_BUILD_TYPE="$PANDORA_BUILD_TYPE" -DHUNTER_JOBS_NUMBER=4 .. \
&& make -j4 \
&& ctest -V \
&& apt-get remove -y cmake git \
&& mv pandora /bin/pandora \
&& cd / \
&& rm -rf $PANDORA_DIR \
&& rm -rf /root/.hunter