-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from molikd/master
Created a Dockerfile
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/* |