-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
37 lines (29 loc) · 1.07 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
FROM alpine
# if you would like to include genomescope2, use "FROM dmolik/genomescope2" Although @molikd commited a pull request to genomescope2, so this may change
LABEL container="merfin" \
about.summary="Improved variant filtering and polishing via k-mer validation" \
about.home="https://github.com/arangrhie/merfin"
#PREAMBLE
WORKDIR /home/genomics
COPY . /home/genomics
RUN cd /home/genomics
# This is as small as possible alpine container for merfin (and meryl)
# Stnadard update
RUN apk update \
&& apk upgrade
#MAIN
# minimum required packages
RUN apk add --no-cache --upgrade make bash gcc g++ git coreutils linux-headers perl libexecinfo-dev
# if using dmolik/genomescope2, you'd only need to add git and libexecinfo-dev
#described install step
RUN git clone https://github.com/arangrhie/merfin.git \
&& cd merfin/src \
&& make -j 12
# put merfin in path
ENV PATH=${PATH}:/home/genomics/merfin/build/bin
#CLEANUP
RUN apk del git g++
# if using dmolik/genomescope2, only delete git
RUN rm -rf *.tgz *.tar *.zip \
&& rm -rf /var/cache/apk/* \
&& rm -rf /tmp/*