Skip to content

Commit

Permalink
Merge pull request #12 from molikd/master
Browse files Browse the repository at this point in the history
Created a Dockerfile
  • Loading branch information
gf777 authored Sep 24, 2021
2 parents 4686f70 + 0243d0e commit fea6263
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Dockerfile
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/*

0 comments on commit fea6263

Please sign in to comment.